curl-and-php
Problem with errno 52
Date: Mon, 24 Feb 2003 13:11:17 +0100
Hello,
I have a problem to get the result from a "https" web site.
I get the result from the server via browser ok and when i try the same with
PHP curl_exec() I get error: Empty reply from server.
PHP 4.3.0, Win2K, libcurl 7.9.8 (OpenSSL 0.9.6g)
$url = "https://login:password@somesite.com/file?param1=1";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
echo curl_exec ($ch);
curl_close($ch);
I can see that it was connected to the server, I see the ceritificate and
request, however, no result.
Moreover when I tried to POST the request and used
curl_setopt($ch, CURL_POST, 1);
curl_setopt($ch, CURL_POSTFIELDS, "par1=1&par2=2");
Via CURLOPT_VERBOSE i saw that GET method was used anyway.
Thanks in advance
Petr
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-02-24