I know Maurizio's component, but it also doesn't work in every situation 
(which may never be the case anyway),
so I want to implement extra checks.
For what I have found on the net, when a http statuscode 305 is received, 
there should be more info returned about the proxy.
I don't know what info and how/where to read/interpret it (and cannot test 
it here).
Especially Squid proxy users seem to use the most exotic ports that are used 
for other protocols.
Does anyone know what info we get when receiving this statuscode and how to 
read this with HttpCli /


Paul



----- Original Message ----- 
From: "Marcello Vezzelli" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Tuesday, December 06, 2005 9:53 AM
Subject: Re: [twsocket] Detect Http/https proxy


Paul wrote:
> Which is the best way to detect http/https proxy's ?
> For IE, you can use InternetQueryOption or a lookup in the registry, but 
> what about all others (Netscape, Opera ...)
> I've seen a lot of ports used (80, 800, 8001,  3128 5865 ...)
> Does anyone have a common 'proxy-detect routine' ?
> Should the lookup only be done when a statuscode 305 is returned?

For IE there is a good component by Maurizio Lotauro, ProxyInfo, you can
find it in ICS downloads.
It's not an easy task because in restricted environment you usually have
proxy + firewall.
Usually, a request on port 80 is simply denied and you get a socket timeout.

The only safe way is reading current proxy informations.
Firefox (Mozilla) save proxy info into prefs.js (inside your profile 
directory).

ProxyInfo handles proxy configuration scripts too: it's common to have a
script for automatic proxy setup (different proxies for different urls).

Regards

-- 
Marcello Vezzelli
CTO
Software Development Department
E-Works s.r.l.
tel. +39 059 2929081
fax +39 059 2925035
Direzionale 70 - Via Giardini 456/c
41100 Modena - Italy

---------------------------------------------------------------------
La presente comunicazione, che potrebbe contenere informazioni riservate e/o
protette da segreto professionale, è indirizzata esclusivamente ai
destinatari della medesima qui indicati. Le opinioni, le conclusioni e le
altre informazioni qui contenute, che non siano relative alla nostra
attività caratteristica, devono essere considerate come non inviate né
avvalorate da noi. Tutti i pareri e le informazioni qui contenuti sono
soggetti ai termini ed alle condizioni previsti dagli accordi che regolano
il nostro rapporto con il cliente. Nel caso in cui abbiate ricevuto per
errore la presente comunicazione, vogliate cortesemente darcene immediata
notizia, rispondendo a questo stesso indirizzo di e-mail, e poi procedere
alla cancellazione di questo messaggio dal Vostro sistema. E' strettamente
proibito e potrebbe essere fonte di violazione di legge qualsiasi uso,
comunicazione, copia o diffusione dei contenuti di questa comunicazione da
parte di chi la abbia ricevuta per errore o in violazione degli scopi della
presente.
---------------------------------------------------------------------
This communication, that may contain confidential and/or legally privileged
information, is intended solely for the use of the intended addressees.
Opinions, conclusions and other information contained in this message, that
do not relate to the official business of this firm, shall be considered as
not given or endorsed by it. Every opinion or advice contained in this
communication is subject to the terms and conditions provided by the
agreement governing the engagement with such a client. If you have received
this communication in error, please notify us immediately by responding to
this email and then delete it from your system. Any use, disclosure, copying
or distribution of the contents of this communication by a not-intended
recipient or in violation of the purposes of this communication is strictly
prohibited and may be unlawful.
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to