Did you have to unzip the gzipped content ?

On Aug 14, 5:54 am, Ben <[EMAIL PROTECTED]> wrote:
> Ok folks,
>
> Thanks to Vik Singh ofYahooI have the answer... you need to accept
> gzip... Here is the magic!
>
> result = urlfetch.fetch(url, headers= {'Accept-encoding': 'gzip'})
>
> Done deal! Thanks Vik!
>
> On Aug 13, 7:14 pm, Ben <[EMAIL PROTECTED]> wrote:
>
> > Yeah I'll look more tonight, that's where I got the idea for the user
> > agent. Since it works in production I think it is a urlfetch issue in
> > rev with HTTP headers.
>
> > On Aug 13, 12:16 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
>
> > > Hi Ben,
> > >  I'm not that familiar with the requirements ofYahoo!Boss, but I do know
> > > that a member of theYahoo! team wrotehttp://www.4hoursearch.com/, which
> > > uses that API, and the code for it is available for download on the site.
> > > This may give you some insight in working with App Engine andYahoo!Boss
> > > together.
>
> > > Hope this helps,
> > > Marzia
>
> > > On Wed, Aug 13, 2008 at 8:13 AM, Ben <[EMAIL PROTECTED]> wrote:
>
> > > > Ok folks help me out here...
>
> > > > I am doing a fetch like this
> > > > result = urlfetch.fetch("http://boss.yahooapis.com/ysearch/news/v1/ben?
> > > > appid=DfNrQ3bV34H_Ll3bncrHNjWL6z_1K_1xX8UIfpugGKdPGTZ_CkCJjNq8FxTLlvI-<http://boss.yahooapis.com/ysearch/news/v1/ben?appid=DfNrQ3bV34H_Ll3bn...>
> > > > ")
>
> > > > And getting:
> > > > HTTP/1.1 406 not acceptable Cache-Control: no-cache Connection: close
>
> > > > On the Dev server and success in production... This is making my app
> > > > untestable in Dev. I tried setting a browser based User Agent
>
> > > > result = urlfetch.fetch("http://boss.yahooapis.com/ysearch/news/v1/ben?
> > > > appid=DfNrQ3bV34H_Ll3bncrHNjWL6z_1K_1xX8UIfpugGKdPGTZ_CkCJjNq8FxTLlvI-<http://boss.yahooapis.com/ysearch/news/v1/ben?appid=DfNrQ3bV34H_Ll3bn...>
> > > > ",headers
> > > > = {"User-Agent": "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:
> > > > 1.8.1) Gecko/20061010 Firefox/2.0"})
>
> > > > Still getting 406s!
>
> > > > Help!
> > > > -Ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to