Upps, Pardon.
On Thu, Sep 22, 2011 at 8:39 PM, cem zafer demirsoy wrote:
> Hi all,
> I have encountered a problem like this, when I have get a page with
> HttpGetText it works fine. But if HTTP status code is 302 or 303
> (Redirection) I havent get the page with HttpGetText.
> How can I overcome
Hi all,
I have encountered a problem like this, when I have get a page with
HttpGetText it works fine. But if HTTP status code is 302 or 303
(Redirection) I havent get the page with HttpGetText.
How can I overcome this situation?
Thanks.
-
2011/9/15 Leonardo M. Ramé :
> Hi, I'm using THttpSend with HeartBeat to monitor downloading of big files
> from an Http Server.
>
> This way I know how many bytes have been downloaded, but I can't see a method
> for knowing how many bytes left to downloads.
>
> Is there a way to know this?.
>
>
I found the solution, just a litte typecasting and it's done:
var
lBlkSock: TBlockSocket;
begin
lBlkSock := TBlockSocket(Sender);
if Assigned(FProgreso) then
begin
FProgreso.DocumentSize := (lBlkSock.Owner as THTTPSend).DownloadSize;
FProgreso.Downloaded := lBlkSock.RecvCounter;