This line is the key. WITH the line, I get a properly formatted XML response from the server, telling me that I did not send any valid post fields. WITHOUT the line, all I get back from the server is a '1' and their tech reports that no valid call was received from me.

On Feb 11, 2009, at 4:56 PM, Stuart wrote:

curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/ xml"));

Drop the above line and I reckon it should work. The content you're
sending is not XML, it's form fields which CURL will default to. It
just happens that one of those fields is XML.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to