Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Is there a way to find out if the server is down after the redirect ?


Message #1 by noor_khimani@h... on Tue, 16 Jan 2001 22:13:16 -0000
Hello,

   I am trying to write the code that will allow me to check for the

status of the redirect. If the page I am redirecting to is down or not

correct then I want to take some other actions. Problem is that after

redirect the control is moved from my page to the redirected page.  Is

there a way I acn do this. I will appreciate any help I can get.



Regards.

Message #2 by "Ken Schaefer" <ken@a...> on Thu, 18 Jan 2001 15:47:32 +1100
You'll need to use some component like ASPTear to connect to the remote

site - you can then evaluate the return status - 200 is OK, 404 is Page Not

Found, 500 is Internal Server Error etc.



If the return status is 200, then Response.redirect the user.



Cheers

Ken



----- Original Message -----

From: <noor_khimani@h...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Wednesday, January 17, 2001 9:13 AM

Subject: [asp_web_howto] Is there a way to find out if the server is down

after the redirect ?





> Hello,

>    I am trying to write the code that will allow me to check for the

> status of the redirect. If the page I am redirecting to is down or not

> correct then I want to take some other actions. Problem is that after

> redirect the control is moved from my page to the redirected page.  Is

> there a way I acn do this. I will appreciate any help I can get.

>

> Regards.

>






  Return to Index