ts2000abc Posted March 7, 2007 Share Posted March 7, 2007 How can i create cURL post with these headers? POST /xml.dll HTTP/1.0 UserAgent: IE6 Content-Type: text/html Content-length: #counter goes here what CURLOPT_'s i should use for posting? Link to comment https://forums.phpfreaks.com/topic/41594-posting-xml-with-curl-post-header/ Share on other sites More sharing options...
monk.e.boy Posted March 7, 2007 Share Posted March 7, 2007 http://curl.haxx.se/mail/curlphp-2005-04/0040.html I think you just $head1.'\r\n'.$head2 them together. monk.e.boy Link to comment https://forums.phpfreaks.com/topic/41594-posting-xml-with-curl-post-header/#findComment-201555 Share on other sites More sharing options...
ts2000abc Posted March 7, 2007 Author Share Posted March 7, 2007 ok... i did copy+paste form that example at: http://curl.haxx.se/mail/curlphp-2005-04/0040.html still the server gives me IIS error message in return. (message is: "Bad Request (Invalid Header Name)") ??? still i need help... Link to comment https://forums.phpfreaks.com/topic/41594-posting-xml-with-curl-post-header/#findComment-201736 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.