cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: file vs directory

From: Ganesh Ragavan <ganeshragavan_at_gmail.com>
Date: Mon, 3 Mar 2008 15:46:17 -0800

Thanks Dan !

On Mon, Mar 3, 2008 at 2:37 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Mon, 3 Mar 2008, Ganesh Ragavan wrote:
>
> > Is there a way to determine if the file I am requesting is a file or a
> > directory?
>
> Not HTTP-wise no. HTTP simply delivers content for the identifier you
> provide.
>
> Your assumptions and acting on certain responses may work on one or more
> server implementations sure, but that's beyond what the HTTP spec says.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2008-03-04