Re: How to set the http_response_header from a custom HTTP wrapper

From: Date: Wed, 26 Nov 2014 14:49:08 +0000
Subject: Re: How to set the http_response_header from a custom HTTP wrapper
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-324062@lists.php.net to get a copy of this message
$http_response_header is set with the response headers from the other end, how/why would you populate them? If your script is send a request or reponse then you issue headers with the header() function or with parameters to the function or class that you are using etc. How are you issuing requests/responses? -Shawn On Wed, Nov 26, 2014 at 8:00 AM, Khalifah Shabazz <shabazzk@gmail.com> wrote: > I wrote a custom HTTP wrapper, but I've hit a snag. I do not know how > to populate the $http_response_header variable. So my questions are: > > 1. Is it even possible to set $http_response_header from a custom PHP > Stream wrapper? > 2. Is there documentation on how to set it? > 3. If there is no official way to set it, then is there a work-a-round > way to set $http_response_header? > > PHP doc on $http_response_header variable: > > http://php.net/manual/en/reserved.variables.httpresponseheader.php > > -- > Khalifah (Ca - lee - fah) Shabazz > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#324062) next »