By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,805 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,805 IT Pros & Developers. It's quick & easy.

XML RPC transport error caused by authentication

P: n/a
Hello,

has anyone experienced problems with XMLRPC library when trying to
connect through authentication?

I am calling a service on (example):
http:\\myuser:my********@awebsite.com/file/file.xml
And I get:
"Something went wrong - -32300 : transport error - HTTP status code
was not 200" I use the IXR_Library but also with another library I
have the same problem. In debug mode I see that PHP produces the XML
file for the request but it seems to have problems sending this to the
service. The service itself is ok, this is checked via another client
implementation.

Below the code I use.

Any suggestions? I think it is due to the userid password thing. When
calling on another service without a userid/password this code works
fine.

Regards
Stefan

<?php
include('IXR_Library.inc.php');

$par =
array("field1"=>"hello","field2"=>"world");

$client = new
IXR_Client('http:\\myuser:my********@awebsite.com/file/file.xml');

if (!$client->query('post', $par)) {
die('Something went wrong - '.$client->getErrorCode().' :
'.$client->getErrorMessage());
}
print_r ($client->getResponse());
echo "Done!";

?>
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Stefan Rijkaart <st******@xs4all.nl> wrote:
I am calling a service on (example):
http:\\myuser:my********@awebsite.com/file/file.xml
And I get:
"Something went wrong - -32300 : transport error - HTTP status code
was not 200" I use the IXR_Library but also with another library I
have the same problem. In debug mode I see that PHP produces the XML
No kidding, my guess there is no http request since the url is not
valid:
- username/password is officially not supported for http URL
- It's http:// not http:\\
Any suggestions? I think it is due to the userid password thing. When
calling on another service without a userid/password this code works
fine.


Look into packetsniffers to help debug these kind of network problems.
Ethereal is IMHO a good choice.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.