Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: TIdTCPClient, TIdIOHandler and a Headache
| Subject: | Re: TIdTCPClient, TIdIOHandler and a Headache |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Mon, 29 May 2006 11:00:23 |
"Lloyd Kinsella" <lloydkinsella@gmail.com> wrote in message
news:447a7644@newsgroups.borland.com...
> I'm writing a small HTTP proxy for something I'm doing and I'm
> struggling. The problem is, TIdHTTPProxy uses ReadStream/Write{Stream}
> in order to do the transferal, which is fine for small files, but imagine
this
> for files in the MB, GB range, the proxy server would first have to
> download the entire file, and then upload.
This is already a known issue for that component. Supporting a
send-as-it-captures mode is already on the Todo list to be implemented at a
later time. If you need something now, you will have to write your own
proxy code.
> What I've been trying is to read a buffer of bytes from the remote HTTP
> server connection and write them off to the HTTP client
Use TIdTCPServer directly for that instead of TIdHTTPProxyServer. Or maybe
even TIdMappedPortTCP.
> I'm having trouble with this part
That is because TIdHTTPProxyServer does not support what you are attempting.
You will have to use something else.
Gambit