473,382 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

XML RPC transport error caused by authentication

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
1 5087
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Brett Robichaud | last post by:
Is anyone familiar with this error? I have this running just fine on my local machine but when I pushed it out to our development server I get this error. I have no idea what it is saying. Any...
2
by: Thomas Scheiderich | last post by:
I am trying to set up forms authentication in my IIS pages. I have a folder inside of my root folder I am trying to protect and I am getting an error when a page in the folder is accessed. The...
1
by: Sam | last post by:
I try to create login page name authentication.aspx and encounter following error message. Configuration Error Description: An error occurred during the processing of a configuration file...
9
by: Patrick | last post by:
I have an ASP.NET page that searches for someone in the corporate Active Directory. It had been working fine until recently when I changed from Basic Authentication on IIS6 back to Integrated...
1
by: Joe | last post by:
What I want to do is make only one page require a login. The application itself works fine. I'm getting the following error: Parser Error Message: It is an error to use a section registered as...
1
by: rh | last post by:
In my web.config file, I added code so that users will be redirected to 1 of 2 Login pages depending on the original page they are trying to access. However, I get the following error message: ...
4
by: MadeOfRose | last post by:
Hi all i was using cdo object for sending email to a customers. when use win2000 server or windows xp my script works correctly. but not on win2003 server r2. Different thing on my script is...
23
by: deathtospam | last post by:
A day or two ago, I wrote a quick ASPX page with a CS codebehind using Visual Studio .NET 2005 -- it worked, I saved it and closed the project. Today, I came back to the project, reopened the...
4
by: yancheng.cheok | last post by:
Hello all, I have a web application, which I had developed few years ago with ASP .NET 1.1 Today, I would like to deploy the web application to client, using ASP .NET 2.0 + UltiDev Cassini...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.