Great I've setted user agent in url fetch and all urlfecthes works now! <code>.. URL url = new URL(link); HttpURLConnection connection=(HttpURLConnection)url.openConnection(); connection.setRequestProperty ( "User-agent", "Mozilla/4.0 ( compatible ) "); </code>
Thanks again Ciao Vincenzo On 13 Nov, 22:54, "Ikai L (Google)" <[email protected]> wrote: > Vincenzo, > > HTTP 406 usually results from the HTTP client "Accepts*" header. This is > documented here: > > http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.htmlhttp://www.checkupdown.com/status/E406.html > > You'll want to check what headers you are setting as well as the headers for > the URL you are trying to fetch to see if they match up. > > On Wed, Nov 11, 2009 at 3:12 AM, vincenzo amoruso < > > > > > > [email protected]> wrote: > > Greetings to All, > > > I'm trying to use urlfetch connection form GAE, > > but on any sites http response status gives 406. > > Could be http headers insue? > > Any ideas? > > > Thanks in advance. > > > Vincenzo > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-appengine-java%2b[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=. > > -- > Ikai Lan > Developer Programs Engineer, Google App Engine- Nascondi testo citato > > - Mostra testo citato - -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=.
