Alright so I diffed the headers. Only change is the User-Agent.
Development (Working):
User-Agent: AppEngine-Google; (+
http://code.google.com/appengine)
Production (Error 400 Bad Request):
User-Agent: AppEngine-Google; (+
http://code.google.com/appengine;
appid: s~ponystreams)
Since I can't spoof it in GAE I wrote a php script and tried with both
User-Agents on my regular website. Sure enough the production one with
"; appid: s~ponystreams" added on fails. So I tried a bunch more
changing parts around to see what works and what doesn't. Came to the
conclusion that a colon, a space, and then any other character
anywhere in the User-Agent string causes the bad request. So valid
ones might look like:
'Something : '
'Something:123'
':'
': '
Invalid:
'Something : ;'
'Something: (something else)'
': x'
I'd remove it from the User-Agent myself, but GAE doesn't allow that.
On Nov 14, 6:18 pm, Mike Ossareh <
ossa...@twitch.tv> wrote:
> A little more digging suggests this may be to do with the GAE user agent.
>
> Try setting one[1][2], see what happens. I'll continue to look into why
> this might be causing an issue.
>
> Cheers,
>
> mike
>
> [1]
http://stackoverflow.com/questions/2743521/how-to-change-user-agent-o...
> [2]
http://code.google.com/p/googleappengine/issues/detail?id=342
>
>
>
>
>
>
>
> On Mon, Nov 14, 2011 at 4:47 PM, Mike Ossareh <
ossa...@twitch.tv> wrote:
> > Hi Esoma,
>
> > If you give us the full request, headers and all then we'll be able to
> > help debug this. As far as we know there is no reason for GAE to not work,
> > but it could be something subtle like a header being set that we disagree
> > with. So, yeah, provide us as much info as you can and we'll do our best to
> > help you out.
>
> > Cheers,
>
> > mike
>
> > On Mon, Nov 14, 2011 at 2:21 PM, esoma <
stillusing...@gmail.com> wrote:
>
> >>
http://api.justin.tv/api/stream/list.json?channel=channelName1,channe....
> >> ..