cURL / Mailing Lists / curl-library / Single Mail


Just starting to use libcurl, a question relating to DirectoryIndex in http servers...

From: Leo Huf Campos Braga <>
Date: Thu, 3 Nov 2005 00:42:57 -0200

I have a problem here in my program relating to DirectoryIndex in http
servers. If I send a domain as the url to the curl handle (like, is there any way for me to know the name of the
file that the server has redirected me to with DirectoryIndex? In this case
it is index.html, but sometimes it's index.asp, and it can actually be any
file in the directory.
 I need to know the file's name because it may be the case that I'm willing
to save this file to disk, and I don't want to just use a default name (like
index.html) to save webpages that are redirected with the server's
DirectoryIndex function.
Received on 2005-11-03