🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #612

Calling a web-service from behind a proxy server

#612
From: Borland Lover
Date: Fri, 19 May 2006 19:30
34 lines
2014 bytes
BCB6 patched.

I have had one developer tell me that my application that calls a 
web-service should "just work" from behind a proxy server.  Is this true?

I am suspicous of this because I have had one client tell me that my "check 
for updates" functionality fails because they are behind an *authenticating* 
proxy server.  As far as that goes I have modified that check for updates 
code to be like this:

if (globalOptions.UseProxy)
{
    IdHTTP1->Request->ProxyServer = globalOptions.ProxyName;
    IdHTTP1->Request->ProxyPort = globalOptions.ProxyPort;

    if (globalOptions.UseProxyAuth)
    {
        IdHTTP1->Request->ProxyUsername = globalOptions.ProxyUserName;
        IdHTTP1->Request->ProxyPassword = globalOptions.ProxyPassword;
    }
}
AnsiString response = IdHTTP1->Get(fullURL);

I believe that will work - but not sure because I havent set up the 
necessary proxy server to test.

Now, as far as the web-service goes, I could do something similar - but the 
import BCB creates uses THTTPRIO to invoke the service and it does not have 
such proxy server details.

What do you think I should do?

TIA.
M.
Technical Details
Message-ID: <446e1cd9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news2.volia.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,1b56549fd55ca66e,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Borland Lover" <kdhf@kbdf.com>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Calling a web-service from behind a proxy server
Date: Fri, 19 May 2006 12:30:27 -0700
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
NNTP-Posting-Host: 207.61.87.125
Message-ID: <446e1cd9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1148067033 207.61.87.125 (19 May 2006 12:30:33 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news2.volia.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail