🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Indy TCPServer and proxies

#5141
From: Remy Lebeau (TeamB)
Date: Sat, 09 Oct 2004 01:30
27 lines
2091 bytes
"Lapo Guidi" <lapoguidi@inwind.it> wrote in message
news:416732b1$1@newsgroups.borland.com...

> My program has a TCppWebBrowser that calls some remote pages.

That complicates matters.  Since TCppWebBrowser is just an embedded version
of Internet Explorer, then to intercept IE's traffic, you need an actual
proxy server, not something that acts like a proxy.  I suggest you read up
on the HTTP RFCs for details on what proxies are supposed to inplement.

Not only that, but IE's proxy configuration is global, meaning that setting
up IE to use a proxy server is going to effect all browser windows through
your whole machine, not just your particular program.

> I would have a TMemo or similar to log the traffic

The only other alternative to writing a proxy is to write your own packet
sniffer instead, and then have it look for any packets that belong to your
program only.  You can use WinPCap (http://winpcap.polito.it) for that.

> and if it's possible, to manage traffic

What do you mean by "manage" exactly?


Gambit
Technical Details
Message-ID: <41673f29$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!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>

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>
Subject: Re: Indy TCPServer and proxies
Date: Fri, 8 Oct 2004 18:30:20 -0700
Lines: 29
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: <41673f29$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097285417 68.69.17.41 (8 Oct 2004 18:30:17 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail