Re: [Synalist] THTTPSend file size

2011-09-22 Thread cem zafer demirsoy
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

Re: [Synalist] THTTPSend file size

2011-09-22 Thread cem zafer demirsoy
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. -

Re: [Synalist] THTTPSend file size

2011-09-15 Thread silvioprog
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?. > >

Re: [Synalist] THTTPSend file size

2011-09-15 Thread Leonardo M . Ramé
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;