Public bug reported: Binary package hint: php5-curl
When using: curl_setopt($ch, CURLOPT_HTTPHEADER, $header); $header should be an array such as: $header = array(); $header[] = "Host: www.google.com"; $header[] = "MIME-Version: 1.0"; $header[] = "Accept: text/xml"; etc... However it seems in Edgy only the first entity in the array is being read and the rest of the array is ignored. I have fudged a workaround in my scripts by doing: $header = array("Host: www.google.com\nMIME-Version: 1.0\nAccept: text/xml .... The best way to test this would be to send post data and force the Content-Length header along with other headers (such as mime). When doing this I get a 411 error (content-length not sent). However forcing the content-length header as above (all in a single array element) works fine. This has been tested using php5-curl version 5.1.6-1ubuntu2 in Edgy on several x86 based CPUs ** Affects: php5 (Ubuntu) Importance: Undecided Status: Unconfirmed -- cURL in PHP5, CURLOPT_HTTPHEADER problems https://launchpad.net/bugs/76705 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs