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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 00:01:24 2020 UTC