php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9296 curl_setopt ($ch, CURLOPT_HTTPHEADER, ..) doesn't work
Submitted: 2001-02-16 10:32 UTC Modified: 2001-02-16 10:45 UTC
From: tom dot anheyer at berlinonline dot de Assigned:
Status: Closed Package: cURL related
PHP Version: 4.0.4pl1 OS: Any
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tom dot anheyer at berlinonline dot de
New email:
PHP Version: OS:

 

 [2001-02-16 10:32 UTC] tom dot anheyer at berlinonline dot de
There is a false constant declarion in the source for 
CURLOPT_HTTPHEADER

*** ext/curl/curl.c-orig        Wed Dec 13 11:23:11 2000
--- ext/curl/curl.c     Fri Feb 16 16:09:16 2001
***************
*** 146,152 ****
        REGISTER_LONG_CONSTANT("CURLOPT_PROXY", 
CURLOPT_PROXY, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("CURLOPT_VERBOSE", 
CURLOPT_VERBOSE, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("CURLOPT_HEADER", 
CURLOPT_HEADER, CONST_CS | CONST_PERSISTENT);
!       REGISTER_LONG_CONSTANT("CURLOPT_HTTPHEADER", 
CURLOPT_HEADER, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("CURLOPT_NOPROGRESS", 
CURLOPT_NOPROGRESS, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("CURLOPT_NOBODY", 
CURLOPT_NOBODY, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("CURLOPT_FAILONERROR", 
CURLOPT_FAILONERROR, CONST_CS | CONST_PERSISTENT);
--- 146,152 ----
        REGISTER_LONG_CONSTANT("CURLOPT_PROXY", 
CURLOPT_PROXY, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("CURLOPT_VERBOSE", 
CURLOPT_VERBOSE, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("CURLOPT_HEADER", 
CURLOPT_HEADER, CONST_CS | CONST_PERSISTENT);
!       REGISTER_LONG_CONSTANT("CURLOPT_HTTPHEADER", 
CURLOPT_HTTPHEADER, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("CURLOPT_NOPROGRESS", 
CURLOPT_NOPROGRESS, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("CURLOPT_NOBODY", 
CURLOPT_NOBODY, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("CURLOPT_FAILONERROR", 
CURLOPT_FAILONERROR, CONST_CS | CONST_PERSISTENT);

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-16 10:43 UTC] sniper@php.net
This is fixed in CVS already.

--Jani

 [2001-02-16 10:45 UTC] tom dot anheyer at berlinonline dot de
sorry

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 13:01:27 2024 UTC