400 Bad Request due to repeated header
--------------------------------------
Key: SHINDIG-932
URL: https://issues.apache.org/jira/browse/SHINDIG-932
Project: Shindig
Issue Type: Bug
Components: PHP
Affects Versions: trunk
Environment: Window XP Pro SP3
Apache/2.2.9 (Win32) DAV/2
PHP/5.2.6
Reporter: Harris Wong
Problem
------------
Tried loading a gadget (www.labpixies.com/campaigns/weather/weather.xml) into
partuza, got the Invalid Header error:
throw 1; < don't be evil'
>{"http:\/\/datafeed.weatherbug.com\/GetXml.aspx?RequestType=103&PartnerId
=BFB7BE81-EF74-4b7b-A9EF-A82D059992EF&SearchString=Torontoss":{"body":"<h1>Bad
Request (Invalid Header
Name)<\/h1>","rc":400}}
({'http://datafeed.weatherbug.com/GetXml.aspx?RequestType=103&PartnerId=BFB7BE81-EF74-4b7b-A9EF-A82D059992EF
&SearchString=Torontoss': {body: "<h1>Bad Request (Invalid Header Name)</h1>",
rc: 400}});
/* !eval(new String("("+txt+");)) */
Trace
---------
Under
shindig/php/src/common/sample/BasicRemoteContentFetcher.php
line 135/136
$outHeaders[] = "User-Agent: " . BasicRemoteContentFetcher::USER_AGENT;
User-Agent has been declared twice, as follow, array[0] and array[6]:
[0] => User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.9.0.6) Gecko/2009011913 Firefox
/3.0.6 (.NET CLR 3.5.30729)
[1] => Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[2] => Accept-Language: en-us,en;q=0.5
[3] => Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
[4] => Connection: keep-alive
[5] => Referer: http://shindig/.......
[6] => User-Agent: Apache Shindig
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.