php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7393 HTTP-Referer is not via in curl_setopt()
Submitted: 2000-10-22 14:38 UTC Modified: 2000-10-22 14:49 UTC
From: messju at internet-factory dot de Assigned:
Status: Closed Package: cURL related
PHP Version: 4.0.3pl1 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: messju at internet-factory dot de
New email:
PHP Version: OS:

 

 [2000-10-22 14:38 UTC] messju at internet-factory dot de
<?php
$c=curl_init();
curl_setopt($c,CURLOPT_URL,"http://lammfellpuschen.de:42000/dumprequest.php");
curl_setopt($c,CURLOPT_USERAGENT,"some ua");
curl_setopt($c,CURLOPT_REFERER,"some reference");
curl_exec($c);
?>

should give a line like headers[Referer] = "some reference"
but does not.

Solution: add the case "case CURLOPT_REFERER:"
in php-4.0.3pl1/ext/curl/curl.c
around line 336.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-22 14:49 UTC] sniper@php.net
Fixed in CVS. 

--Jani
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Sep 30 07:01:23 2020 UTC