curl-users
7.10.4 not working with SSL
Date: Thu, 10 Apr 2003 05:59:40 +0200
Hello!
I use CURL with the following server software:
Apache/1.3.14 (Unix)
mod_gzip/1.3.19.1a
mod_perl/1.24 PHP/4.0.6
FrontPage/4.0.4.3
mod_ssl/2.7.1
OpenSSL/0.9.6
I have 2 problems with CURL VERSION 7.10.4:
1.) **************************************************************
When I do POSt like this:
curl -d "a=alfa&b=beta" https://username:password@secure.server.com
I get response:
"Server certificate does not match those at 'secure.server.com'"
I tried to install with or with/out SSL, but no help. So i simply
DOWNGRADED from CURL 7.10.4 to CURL 7.10.1 and it works fine.
2.) ***************************************************************
Now, with CURL 7.10.1 I have problems, when I try to fetch only return
ERROR CODE from a POST request:
curl -d "a=alfa&b=beta" https://username:password@secure.server.com
If I add parameter
-w%{http_code}
I DO get error code back, BUT WITH THE WHOLE PAGE!!!
If I use parameter
-I
I get RID of WHOLE PAGE, but I get RID of ERROR CODE, too!
QUESTION:
How can I retreive only ERROR CODE from the response, but without
displaying the whole page?
*********************************************************************
Thanx!
Andrej Pirman
webmaster_at_sparovek.net
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
Received on 2003-04-10