k62bcntt / gtranslate-api-php

Automatically exported from code.google.com/p/gtranslate-api-php
GNU General Public License v3.0
0 stars 0 forks source link

$_SERVER['HTTP_REFERER'] when requestType = curl #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. $gt = new Gtranslate;
2. $gt->setRequestType("curl");
3. when running PHP Notice:  Undefined index:  HTTP_REFERER in
/home/happyman/projects/happyman-tools/cli/convert-srt/GTranslate.php on
line 207

What is the expected output? What do you see instead?
can workaround by 
$_SERVER['HTTP_REFERER'] = ""; 

What version of the product are you using? On what operating system?
0.7.3

Original issue reported on code.google.com by happyman.eric on 4 Nov 2009 at 9:04

GoogleCodeExporter commented 8 years ago
Fixed under version 0.7.4

Original comment by josedasilva on 18 Nov 2009 at 3:19