#11856 [Com]: CURLOPT_HEADER
| From: | fisting-european1097 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:08:29 +0000 |
| Subject: | #11856 [Com]: CURLOPT_HEADER | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63014@lists.php.net to get a copy of this message | ||
ID: 11856
Comment by: fisting-european1097 at hotmail dot com
Reported By: alberty at neptunlabs dot de
Status: Closed
Bug Type: cURL related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0 Latest CVS (2001-07-03)
New Comment:
<a href=http://yeuropeanfistingfoo.da.ru>fisting
european</a>
Previous Comments:
------------------------------------------------------------------------
[2001-07-30 17:05:25] sterling@php.net
close
------------------------------------------------------------------------
[2001-07-30 17:05:12] sterling@php.net
fixed in cvs.
------------------------------------------------------------------------
[2001-07-03 11:08:24] alberty at neptunlabs dot de
Hi Sterling Hughes,
the follow code from php doku doesnt work
with the current cvs version:
-----
$ch = curl_init ("http://www.php.net/");
$fp = fopen ("php_homepage.txt", "w");
curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
curl_close ($ch);
fclose ($fp);
-----
... produce an output like "HTTP/1.1 200 OK"
!without! any print or echo and the file
php_homepage.txt is empty.
I think it's a problem with "CURLOPT_WRITEHEADER",
because if i set this option, the script work fine.
my config: "libcurl 7.8 (OpenSSL 0.9.6a) (ipv6 enabled)"
Regards,
--
Steve Alberty
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11856&edit=1