cURL / Mailing Lists / curl-users / Single Mail

curl-users

Authentication problem with HTTPS

From: <raymond.sclison_at_free.fr>
Date: Fri, 16 Nov 2001 17:59:33 +0100 (MET)

Hi,

I try to connect to an HTTPS URL and POST some data.
With IE and Netscape it works fine.
I use :
  curl 7.9.1 (win32) libcurl 7.9.1 (OpenSSL 0.9.6b)
and the command is :
 curl -v -x XXX.XX.XXX.XXX:8080 -d"xml=@test.xml" -u "post:post" -i
https://server/i1/s2/Inbound
The URL is a CGI which take a POST stream and return a XML result

It seems that I have an authentication problem. The result is here
==================================================================
> CONNECT server:443 HTTP/1.0
User-Agent: curl/7.9.1 (win32) libcurl 7.9.1 (OpenSSL 0.9.6b)

< HTTP/1.0 200 Connection established
< Proxy-agent: Netscape-Proxy/3.52
< Via: 1.0 BRAGON3
* Proxy replied to CONNECT request
* Your connection is using a weak random seed!
* SSL connection using EXP-DES-CBC-SHA
* Server certificate:
* subject: /C=XX/L=XXXXXX/O=XXX S.A./OU=some OU/CN=some CN
* start date: 2001-10-23 14:12:29 GMT
* expire date: 2002-10-23 23:59:00 GMT
* common name: some CN(matched)
* issuer: /C=PT/O=Certipor S.A./OU=Y2002/CN=Certipor Class 3 CA
* Connected to XXX.XX.XXX.XXX (XXX.XX.XXX.XXX)
> POST /invoke/GP_MAP/Inbound HTTP/1.1
Authorization: Basic cG9zdDpwb3N0
User-Agent: curl/7.9.1 (win32) libcurl 7.9.1 (OpenSSL 0.9.6b)
Host: server
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 12
Content-Type: application/x-www-form-urlencoded

xml=@test.xml
HTTP/1.1 401 Invalid credentials
WWW-Authenticate: Basic realm="b2b"
Connection: Close
Content-Length: 0

* Closing connection #0
=========================================================================

Any idea wil be welcome
Thanks
Received on 2001-11-16