Download internet file without interference

devtuxtla
Posts: 392
Joined: Tue Jul 29, 2008 1:55 pm

Re: Download internet file without interference

Post by devtuxtla »

Hi, FiveWinners.

in the example of the previous post, Horizon, tell us how to get the file size over http.

this is the code:

cRequest := "HEAD "+oUrl:BuildAddress() + " HTTP/1.1" + CRLF + ;
"Host: "+oUrl:cServer+ CRLF + ;
"User-Agent: HTTP-Get-File-Size" + CRLF + ;
"Connection:close" + CRLF + ;
CRLF

Might indicate to us how to get the date and time of a file over http?

Regards
Visite Chiapas, el paraiso de México.
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: Download internet file without interference

Post by Horizon »

Hi,

I did not tried but I think You can search "Last-Modified:" instead of "Content-Length:" and extract the date and time.

It should be return like this format:

Last-Modified: Wed, 15 Nov 1995 04:58:08 GMT

Good Luck.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Post Reply