Download internet file without interference

Re: Download internet file without interference

Postby devtuxtla » Sat Sep 25, 2010 7:56 pm

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.
devtuxtla
 
Posts: 392
Joined: Tue Jul 29, 2008 1:55 pm

Re: Download internet file without interference

Postby Horizon » Sun Sep 26, 2010 2:16 pm

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 & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests