🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Proxy server

#1035
From: Remy Lebeau (TeamB)
Date: Tue, 29 May 2007 17:17
35 lines
2235 bytes
"Holger Wiebrock" <hw@medata.de> wrote in message
news:465c26d6@newsgroups.borland.com...

> One of our customers uses a proxyserver and i try to setup a
connection.

You did not say what kind of proxy is being using.  It makes a
difference, as there are two different ways to approach it.  What you
have attempted so far only applies to proxies that are specific to the
HTTP protocol.  General TCP proxies, such as a SOCKS server, requires
the use of a separate component, such as TIdSocksInfo, that is to be
attached to the TIdHTTP component via IOHandler.SocksInfo property.

> AnsiString response = http->Get(some url);
>
> Here i get an error 407 proxy authentication required.

Double-check that your proxy username/password are actually correct.
In Indy 9, TIdHTTP also has OnSelectProxyAuthorization and
OnProxyAuthorization events that deal with proxy connections.  And
make sure that the AuthRetries property is set to a reasonable number,
and that you have hoInProcessAuth set in the Options property.

> I wrote a testapplication with c# to check the right username and
password .
> With .Net i got it to work, so the username and password which i got
from
> the admin is correct and the error by indy makes for me no sense at
all.

Please show the .NET code that works for you.


Gambit
Technical Details
Message-ID: <465c60b9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <465c26d6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,1522b891fa1936bb
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <465c26d6@newsgroups.borland.com>
Subject: Re: Proxy server
Date: Tue, 29 May 2007 10:17:36 -0700
Lines: 37
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: 75.82.252.126
Message-ID: <465c60b9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1180459193 75.82.252.126 (29 May 2007 10:19:53 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail