Archived Forum Post

Index of archived forum posts


Chilkat Http File Exist

Nov 14 '12 at 15:41

I was hopping to find a way to verify whether a file exist on the server using the Http library.

Currently I'm doing a QuickGet and checking for the buffer.Length > 0 which fails for file with 0 bytes long.


I'm not so sure your question is a valid one. A URL is not necessarily a file on the server. You can send an HTTP GET request, or maybe a HEAD request, to an HTTP server requesting the path to a particular resource, but it doesn't mean the path is an actual file. The server can respond to a request in any way it sees fit. An HTTP request and response says nothing about whether an actual file exists on the server or not..