Jump to content
Sign in to follow this  
oleg

HTTP File List

Recommended Posts

oleg

Is there any good way to get a list of files and folders located on a http server along with their date / size info ?


There is a hex ( 31303030303030 ) reasons i love AutoIt !

Share this post


Link to post
Share on other sites
cppman

Is there any good way to get a list of files and folders located on a http server along with their date / size info ?

hmm... not sure, but it sounds like a fun UDF to write... :D

Share this post


Link to post
Share on other sites
mr.underperson

Yes, but only if that file list is available in the first place, most are not, i.e. 403.

But if it is, you can grab it and parse it, and then something like this (from a recent post of mine on this forum)...

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET","http://domain.com/somefile.html")
$oHTTP.Send()
$HTTP_headers = $oHTTP.GetAllResponseHeaders

Will get you that date/size/etc. More details here...

http://msdn.microsoft.com/library/default....httprequest.asp

-mu

Share this post


Link to post
Share on other sites
oleg

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET","http://domain.com/somefile.html")
$oHTTP.Send()
$HTTP_headers = $oHTTP.GetAllResponseHeaders
Looks interesting will check it out :D Thanks

There is a hex ( 31303030303030 ) reasons i love AutoIt !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×