curl-users
HTTP Authentication Failure
Date: Wed, 16 Aug 2006 11:10:00 +0000
I've been trying to connect to a web service via SOAP and am using this
command line :-
curl-7.15.4\curl.exe -U "myusername:mypassword" -d "@c:\test.xml" -H
"Content-Type: text/xml" -v -H "SOAPAction: myURL" myURL
And get the fiollowing result :-
* About to connect() to XXXX port 80
* Trying XXXX... connected
* Connected to XXXX (XXXX) port 80
>POST /webservices/services/vrm HTTP/1.1
>User-Agent: curl/7.15.4 (i586-pc-mingw32msvc) libcurl/7.15.4 zlib/1.2.2
>Host: myURL
>Accept: */*
>Content-Type: text/xml
>SOAPAction: myURL
>Content-Length: 530
>
><?xml version="1.0"?>.....HTTP/1.1 401 Unauthorized
< Date: Wed, 16 Aug 2006 10:33:38 GMT
< Server: Apache/2.0.55 (Unix) DAV/2 mod_jk/1.2.8 mod_jk2/2.0.4
< WWW-Authenticate: Basic realm="vrm"
< Content-Length: 948
< Cache-control: private, no-store, no-cache
< Pragma: no-cache
< Expires: 0
< Content-Type: text/html;charset=utf-8
< Set-Cookie: tds=19077036.20480.0000; path=/
<html>Shortened error message apache tomcat 5.5 - HTTP Status 401 This
request requires HTTP authentication ().</html>Connection #
0 to host webservices.traderdatasystems.co.uk left intact
* Closing connection #0
Basically I've been supplied a username and password to use the service.
When I go to the web site and use a facility to list the web services it
offers an Internet Explorer authentication login/permission box and the
username and password supplied lets me through.
However using the cURL tool it doesn't want to play !!!!
Can anyone suggest how I can debug this or alternative ways of supplying the
username and password.
Thanks in Advance,
Rob
Received on 2006-08-16