🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5152

Re: Indy TCPServer and proxies

#5152
From: Remy Lebeau (TeamB)
Date: Sun, 10 Oct 2004 18:53
30 lines
2206 bytes
"Lapo Guidi" <lapoguidi@inwind.it> wrote in message
news:41687e62@newsgroups.borland.com...

> PS. Just for curiosity, the lines i changed are:
>  AnsiString Request = AThread->Connection->ReadLn(LF,
IdTimeoutDefault, -1);
> to
> AnsiString Request = AThread->Connection->ReadLn("\r\n\r\n",
> IdTimeoutDefault, -1);
> because I need all headers to be forwarded.

In theory, my earlier code should have altready done that, since the headers
were not read from the socket yet, so TIdMappedPortTCP should have handled
that automatically the next time it checked both connections for pending
data.

> and
> AThread->NetData = (Command + " " + URL.SubString(8, MaxInt) + " " +
> Version);
> to
> AThread->NetData=(Command+" "+uri->Path+uri->Document+uri->Params+"
> "+Version+"\r\n")
> because the GET command didn't want the host inside request.

Yeah, that I did miss.  I meant to strip off the host as well, not just the
protocol.


Gambit
Technical Details
Message-ID: <4169850f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4166efc5$1@newsgroups.borland.com> <4166fc3a$1@newsgroups.borland.com> <41671c26@newsgroups.borland.com> <4167289e$1@newsgroups.borland.com> <416732b1$1@newsgroups.borland.com> <41673f29$1@newsgroups.borland.com> <4168173c$1@newsgroups.borland.com> <416824b3$1@newsgroups.borland.com> <41682b12$1@newsgroups.borland.com> <416849a8$1@newsgroups.borland.com> <41687e62@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3acb790ca748eb20
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4166efc5$1@newsgroups.borland.com> <4166fc3a$1@newsgroups.borland.com> <41671c26@newsgroups.borland.com> <4167289e$1@newsgroups.borland.com> <416732b1$1@newsgroups.borland.com> <41673f29$1@newsgroups.borland.com> <4168173c$1@newsgroups.borland.com> <416824b3$1@newsgroups.borland.com> <41682b12$1@newsgroups.borland.com> <416849a8$1@newsgroups.borland.com> <41687e62@newsgroups.borland.com>
Subject: Re: Indy TCPServer and proxies
Date: Sun, 10 Oct 2004 11:53:13 -0700
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4169850f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097434383 68.69.17.41 (10 Oct 2004 11:53:03 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail