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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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: Thu Dec 26 22:01:28 2024 UTC