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
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: 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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 12:01:29 2024 UTC