Check File existence over HTTP using C#.net

j_vijaydaniel

New member
Joined
Jan 14, 2009
Messages
4
Hi All..

I have a windows C#.net Application 1.3 which has Uploading and Downloading work over http to local system as well as local system to http.
My application runs through Web Service.

I encoded Downloading and Uploading options through the Client Windows application itself.

My problm is I am not able to check the File Existence over HTTP. Its throwing only exception if i do so.
Its urgent.
Pls help.. Thanks a lot in Advance..:D

Regards., :)
Vijay Daniel
 
Thanks for ur reply buddy!! Currently i checked my file existence over HTTP thru Catch method only. But at times it always moves on to Catch giving me a message that " This file does not exists in "http://203.303.11/test"
This s a custom message given by me only.
I need a code to check a file in the Web Server ie, http.

Thanks
 
Could the web service not check for the existence of the file and throw a specific exception if it is missing?

The client would then catch this exception and know the file wasnt there.
 
Back
Top