2009/2/12 Brian Dunning <brian@xxxxxxxxxxxxxxxx>: > 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. In that case you're not sending them what they're asking for. Are the method, login and password fields supposed to be separate or should they be included in the xml? At the moment they're separate so when you tell the server it's in XML format you're lying because only part of it is. As a test try setting $postArgs = $xml. If I'm right it might either work or give you and authentication error. -Stuart > 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 (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php