The Artima Developer Community
Sponsored Link

Java Answers Forum
How to skip 404/401/403

1 reply on 1 page. Most recent reply: Apr 5, 2002 3:12 AM by Thomas SMETS

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
kumar

Posts: 3
Nickname: kumar
Registered: Mar, 2002

How to skip 404/401/403 Posted: Apr 4, 2002 6:21 AM
Reply to this message Reply
Advertisement
I am developing a web spider where my program has to connect to the URL and process certain stuff.

Problem is whenever a bad request error 404/401/403 comes, the program halts. I have used the getresponse code in HttpURLConnection to capture error codes and using an if condition to break out of the loop when 404/403/401 is encountered, but this doent solve my problem.

any help?


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: How to skip 404/401/403 Posted: Apr 5, 2002 3:12 AM
Reply to this message Reply
If your solution doesn't work ...

We can hardly help you w/o knowing more about you application ! What return code do you trap when there is a a 404 or smthg else ?

Should you not want to disclose you code, ay be you want to send me the code directly !

Rgds,

Thomas,

Flat View: This topic has 1 reply on 1 page
Topic: Line numbers for editor using JTextArea Previous Topic   Next Topic Topic: How to read blobs from MS Access through Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use