php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11856 CURLOPT_HEADER
Submitted: 2001-07-03 11:08 UTC Modified: 2001-07-30 17:05 UTC
From: alberty at neptunlabs dot de Assigned:
Status: Closed Package: cURL related
PHP Version: 4.0 Latest CVS (2001-07-03) OS: i686-pc-linux-gnu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alberty at neptunlabs dot de
New email:
PHP Version: OS:

 

 [2001-07-03 11:08 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-30 17:05 UTC] sterling@php.net
fixed in cvs.
 [2001-07-30 17:05 UTC] sterling@php.net
close
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC