Jump to content

http web requset exception

- - - - -

  • Please log in to reply
4 replies to this topic

#1
martin2311

martin2311

    Learning Programmer

  • Members
  • PipPipPip
  • 32 posts
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.

#2
wwarren

wwarren

    Learning Programmer

  • Members
  • PipPipPip
  • 60 posts
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.

#3
martin2311

martin2311

    Learning Programmer

  • Members
  • PipPipPip
  • 32 posts
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

#4
Blimp

Blimp

    Programmer

  • Members
  • PipPipPipPip
  • 154 posts
Try
//Your code here
Catch
End Try

/thread

#5
wwarren

wwarren

    Learning Programmer

  • Members
  • PipPipPip
  • 60 posts
What he said ^^^^




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users