curl-and-php
How to get a : into the http headers
From: Robert Brose <bob_at_jriver.com>
Date: Tue, 26 Aug 2008 15:50:38 -0500 (CDT)
Date: Tue, 26 Aug 2008 15:50:38 -0500 (CDT)
I'm using curl 7.15.5 with php 4.4.4 and apache on debian linux.
I need to do a post with a header line that contains a : (see the
SOAPAction line).
When I try to create it the : acts as a delimiter and chops off
everything after it (I can see this with tcpdump).
I can't seem to find a way around this. Is there one?
$headers = array(
"Accept: */*",
"Content-Type: text/xml; charset=utf-8",
"SOAPAction: http://www.foo.com/GetKey",
"Connection: Keep-Alive",
"Cache_Control: no-cache"
);
...
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
...
Bob
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-08-26