pratibha14
Technical User
- Mar 2, 2004
- 30
Hi..
I want the source code of a web page. So, I wrote following code:
URL u = new URL("URLConnection uc = u.openConnection();
uc.connect();
InputStream in = uc.getInputStream();
But it returns this error
"java.io.IOException: Server returned HTTP response code: 403 for URL:
If i change URL from google search to yahoo search or MSN search.... " then it works without any error.
Can anyone tell me how to resolve it?
Thanks
I want the source code of a web page. So, I wrote following code:
URL u = new URL("URLConnection uc = u.openConnection();
uc.connect();
InputStream in = uc.getInputStream();
But it returns this error
"java.io.IOException: Server returned HTTP response code: 403 for URL:
If i change URL from google search to yahoo search or MSN search.... " then it works without any error.
Can anyone tell me how to resolve it?
Thanks