PHP 4.0 Bug #7393 Updated: HTTP-Referer is not via in curl_setopt()
| From: | sniper@php.net | Date: | Sun, 22 Oct 2000 18:49:05 +0000 |
| Subject: | PHP 4.0 Bug #7393 Updated: HTTP-Referer is not via in curl_setopt() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35805@lists.php.net to get a copy of this message | ||
ID: 7393
Updated by: sniper
Reported By: messju@internet-factory.de
Status: Closed
Bug Type: cURL related
Assigned To:
Comments:
Fixed in CVS.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-10-22 14:38:46] messju@internet-factory.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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7393