i have made a loop for request of url in list box but the problem is that on some sites it gives 403 or 500 http error and project closes
how to get that fixed that even if response is 403 or 500 keep the project going?
project is to get the source code of website so i want it to be like even if website response is 403 or 500 or anyother http error my code keep on working and get source code of page.
4 replies to this topic
#1
Posted 25 March 2011 - 06:51 AM
|
|
|
#2
Posted 20 April 2011 - 02:29 PM
What you probably need is a Try...Catch statement, but it's hard to help without seeing your source code so far.
If you post your source code using the code tag, I can definitely help you out.
If you post your source code using the code tag, I can definitely help you out.
#3
Posted 26 April 2011 - 06:41 AM
source code is nothing just a simple http web request
i give link from a list box and that is it the links which are 200 http web request works but links with errors like some database errors like access database it returs a web response of 403 or something project halts so i want it to keep going
i give link from a list box and that is it the links which are 200 http web request works but links with errors like some database errors like access database it returs a web response of 403 or something project halts so i want it to keep going
#4
Posted 27 April 2011 - 08:38 AM
Try //Your code here Catch End Try
/thread
#5
Posted 27 April 2011 - 08:56 AM
What he said ^^^^
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top










