Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FILEEXIST (help needed from Argentina)

Status
Not open for further replies.

kolorasta

Technical User
Jul 2, 2002
65
AR
I want to make a download manager in ASP

before a response.redirect(" y want to check if that file exists... is it possible???

Note that "myfile.ext" is not located in the same server that the .asp files are...

I want to do that because I don't want to count clicks on broken links...
Am I clear?

Thanks

PS:sorry for my poor english
 
I would suggest using a COM object such as AspHTTP from or writing your own in a VB COM object.

You would do a GET on the URL/file and check the HTTP status code. If you received a status of 200 you know the file exists and then you could execute your redirect.

Thanks,

Gabe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top