Web lists-archives.com

Re: why does latest jessie apache2 reject _ in http request path




On Wed, Mar 08, 2017 at 10:04:05PM +0200, Juha Heinanen wrote:
> Thanks for your help.  The above didn't show all headers, but I found
> the bug in the curl function call of the client:
> 
> 	curl_setopt($curl, CURLOPT_HTTPHEADER,
> 	  array('Content-Type: text/xml',
> 	    'POST $location HTTP/1.0',
>  	    'Host: $site',
>          ...
> 
> The last line should of course be:
> 
>         'Host: ' . $site,

In that case, I would expect the $location variable to have the same
issue.  Not that I know much about PHP.  That is PHP, I think...?

Does this language have different kinds of quoting, like '...' vs.
"..." in perl or sh?  If so, you might try using the other quotes.