curl-and-php
exec("curl https://www..sitename.com") returns empty string in php 4 or 5
From: Aleksandar Sabotinov <alex_syscoset_at_yahoo.com>
Date: Sat, 17 May 2008 16:46:18 -0700 (PDT)
Date: Sat, 17 May 2008 16:46:18 -0700 (PDT)
Hello,
I am using php (4 or 5) and curl(libcurl/7.17.1 OpenSSL/0.9.8g zlib/1.2.3) to download some https pages. My problem is that for some of them I get an empty string as a result from curl. These pages are visible through the browser, but curl returns empty string. How can I get an error code or some other clue what is wrong?
$respond = shell_exec("curl https://www.sitename.org?param1=ttt");
// the same result with: $respond = exec("curl https://www.sitename.org?param1=ttt");
echo ($respond); // returns blank screen for most of the sites
Thanks,
Alex
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-05-18