Re: Suggestion for get_headers
| From: | Christian Schneider | Date: | Mon, 10 Mar 2008 11:38:53 +0000 |
| Subject: | Re: Suggestion for get_headers | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36077@lists.php.net to get a copy of this message | ||
Justin Martin wrote:
>> headers generated by an HTTP request. The primary parameter to this,
>> "string $url", is provided unencoded. Due to this, any request with
>> special characters (i.e. a space), will return 400 BAD REQUEST. My
Garbage in, garbage out. It is up to you to provide it with a valid URL
(spaces are not allowed in a URL).
Use e.g. http_build_query() for the URL parameters.
Regards,
- Chris