Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: TIdTCPClient, TIdIOHandler and a Headache
| Subject: | Re: TIdTCPClient, TIdIOHandler and a Headache |
| Posted by: | "Lloyd Kinsella" (lloydkinsel..@gmail.com) |
| Date: | 29 May 2006 14:23:43 |
I am using my own, I'm using TIdCmdTCPServer like the proxy component
does, I was just stating how TIdHTTPProxy does it. My issue is HOW to
implement the send-as-it-captures as the code I gave doesn't work, it's
not that TIdHTTPProxy doesn't support it, I'm not using it...
- Lloyd
Remy Lebeau (TeamB) wrote:
>
> "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
--