curl-library
Re: file vs directory
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 3 Mar 2008 23:37:10 +0100 (CET)
Date: Mon, 3 Mar 2008 23:37:10 +0100 (CET)
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.htmlReceived on 2008-03-03