cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Re: curl and https

From: Henrik Bjernersjö <henrik_at_bjernersjo.com>
Date: Mon, 19 May 2003 02:03:09 -0700

Ive tried with curl -k "https..." or --insecure but that doesnt make any
difference im afraid.

I dont know what file to use for --cacert [file] (Ive tried with "ca-
bundle.crt" that comes with the Curl-installation but that doesnt work (maybe
that is obvious but not to me :)

This is what I get when I use the -v option:

C:\PHP>curl -v "https://userid:password@www.customer.se/GetData?
OrgID=123&UserName=456"
* About to connect() to www.customer.se:123
* Connected to www.customer.se (123.45.678.901) port 123
* SSL connection using RC4-MD5
* Server certificate:
* subject: /C=SE/ST=Stockholm/L=Stockholm/O=SKLF Customer AB/OU=IT
 Department/CN=www.customer.se
* start date: 2002-09-13 14:29:38 GMT
* expire date: 2004-09-12 14:29:38 GMT
* common name: www.customer.se (matched)
* issuer: /C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Cer
tification Services Division/CN=Thawte Server CA/emailAddress=server-certs_at_thawt
e.com
> GET /GetData?OrgID=123&UserName=456
63 HTTP/1.1
Authorization: Basic YWRzdGF0ZTphZDQ5U3RhdGU3MA==
User-Agent: curl/7.10.4 (win32) libcurl/7.10.4 OpenSSL/0.9.7a zlib/1.1.4
Host: www.customer.se
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

Error: Access is Denied.* Closing connection #0

C:\PHP>

Thanks for your help Daniel!
/Henrik

-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java
code to make your application fit in a relational database is painful,
don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
Received on 2003-05-19