You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Chris Chabot (JIRA)" <ji...@apache.org> on 2009/02/23 15:51:08 UTC
[jira] Resolved: (SHINDIG-932) 400 Bad Request due to repeated
header
[ https://issues.apache.org/jira/browse/SHINDIG-932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Chabot resolved SHINDIG-932.
----------------------------------
Resolution: Fixed
Fix Version/s: trunk
Assignee: Chris Chabot
Thanks for the report, the issue has been fixed in the trunk.
Standard disclaimer: The trunk is currently known to be unstable, so while I'm very grateful for the fix (and please keep those coming!) if you want to use php-shindig in production, please use the stable release branch instead: http://svn.apache.org/repos/asf/incubator/shindig/branches/1.0.x-incubating/
> 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
> Assignee: Chris Chabot
> Fix For: trunk
>
>
> 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.