login about faq

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.

asked Nov 14 '12 at 13:01

Decio's gravatar image


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..


answered Nov 14 '12 at 15:41

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Nov 14 '12 at 13:01

Seen: 1,008 times

Last updated: Nov 14 '12 at 15:41

powered by OSQA