Board index » delphi » Q: IdHTTP (getting File Information/Properties)

Q: IdHTTP (getting File Information/Properties)

Hi,

I'm using IdHTTP to download binary files from a web page and it works
perfectly.

I would also like to get some file information/properties before the
download starts (such as size, date etc...) and that... I don't know
how.  I'm more familiar with FTP where there is builtin functions to
parse the directory info...

Feel free to RTFM me if you know where the answer is written.

Thx

 

Re:Q: IdHTTP (getting File Information/Properties)


Quote
> I'm using IdHTTP to download binary files from a web page and it works
> perfectly.

> I would also like to get some file information/properties before the
> download starts (such as size, date etc...) and that... I don't know
> how.  I'm more familiar with FTP where there is builtin functions to
> parse the directory info...

TIdHTTP.Head can get metadata for a URL. TIdHTTPResponse has properties that
*may* be returned in the TIdHTTP.Response.   TIdHTTP.Head is a separate
request that needs to be issued independent of TIdHTTP.Get.

Quote
> Feel free to RTFM me if you know where the answer is written.

They're all in the help file. <g>

hth...

Other Threads