🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Proxy server

#1133
From: Holger Wiebrock
Date: Tue, 29 May 2007 13:17
39 lines
2182 bytes
Hi

i am using the TIdHttp class to communicate with a webserver for exchanging 
some data.

One of our customers uses a proxyserver and i try to setup a connection. 
Unfortunetly i don't get this to work. Neither with indy8 nor indy9 i could 
setup this connection to the proxyserver.

I am using BCB5:

Indy 8 Code:
TIdHTTP *http = new TIdHTTP(0);
http->Request->ProxyServer = "server";
http->Request->ProxyPort = "80";
http->Request->ProxyUsername = "user";
http->Request->ProxyPassword = "password";
AnsiString response = http->Get(some url);

Here i get an error 407 proxy authentication required.
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.

Indy 9 Code:
TIdHTTP *http = new TIdHTTP(0);
http->ProxyParams->ProxyServer = "server";
http->ProxyParams->ProxyPort = "80";
http->ProxyParams->ProxyUsername = "user";
http->ProxyParams->ProxyPassword = "password";
AnsiString response = http->Get(some url);

With indy9 immediatley after the "get" to the specified url i get an access 
violation.
Any ideas would be appreciated because i don't have any other alternative 
than indy.

Greetings from Germany
Holger 
Technical Details
Message-ID: <465c26d6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,1522b891fa1936bb,start
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Holger Wiebrock" <hw@medata.de>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Proxy server
Date: Tue, 29 May 2007 15:17:11 +0200
Lines: 41
Organization: MeData EDV Systeme GmbH
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.100.248.235
Message-ID: <465c26d6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1180444374 82.100.248.235 (29 May 2007 06:12:54 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail