This discussion is archived
13 Replies Latest reply: May 14, 2007 4:07 PM by EJP RSS

Google returns HTTP response code 403

807596 Newbie
Currently Being Moderated
hi,
this is my problem: I've got an HttpURLConnection to the URL http://www.google.com/search?hl=de&ie=ISO-8859-1&q=test.
if i use the methods getConentLength(), getInputStream(), getResponseMessage() or sth. on this object, the following exception is thrown:
java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.google.com/search?hl=de&ie=ISO-8859-1&q=test.

any idea, why that happens? Does Google block something? i had this problem only with google (but the google home page (google.com) works).