🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
3 messages
3 total messages Started by Franco Sat, 05 Mar 2005 17:29
Proxy server and TIdHTTP
#1297
Author: Franco
Date: Sat, 05 Mar 2005 17:29
32 lines
1915 bytes
Hi again,

Maybe you can help me with this one.

I have an app which checks for updates through HTTP. All it does is do a GET
against an ASP page on my site that will determine if a newer version
exists.

I use TIdHTTP to do this like so:

const AnsiString verCheckPage =
"http://www.MYDOMAIN.com/download/updverchk.asp";
const AnsiString URLParams = GetURLParams();
const AnsiString fullURL = verCheckPage + "?" + URLParams;

AnsiString response = IdHTTP1->Get(fullURL);

Works great, but I just had a customer say:

"We have to disable this option because it doesn't work behind our firewall.
Can you add an option in the next release to allow users to enter proxy
details then we could use this feature?"

I am not sure how to do this.  Should I expose the TIdHTTP properties:
ProxyAuthenticate, ProxyPassword, ProxyPort, ProxyServer, and ProxyUsername?
If so, how will I test this?  I am not sure how to set up a proxy server to
validate that it works as expected.

Can you give any directions or point me to a web-resource that will help?

Thank you.
Frank
Re: Proxy server and TIdHTTP
#1299
Author: Remy Lebeau (TeamB)
Date: Sun, 06 Mar 2005 21:04
22 lines
1641 bytes
"Franco" <nope@nope.com> wrote in message
news:4229ec17$1@newsgroups.borland.com...

> I am not sure how to do this.

TIdHTTP has a ProxyParams property that you can assign the necessary values
to.

> Should I expose the TIdHTTP properties: ProxyAuthenticate,
> ProxyPassword, ProxyPort, ProxyServer, and ProxyUsername?

Yes.

> If so, how will I test this?

Do you have access to a proxy server?  If not, there are plenty of
third-party proxy servers you can download for testing.  Or just give it to
your customer and see if it actually works or not.


Gambit
Re: Proxy server and TIdHTTP
#1300
Author: Franco
Date: Mon, 07 Mar 2005 15:06
10 lines
1184 bytes
Thanks Remy.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote
[...]
> > If so, how will I test this?
>
> Do you have access to a proxy server?  If not, there are plenty of
> third-party proxy servers you can download for testing.  Or just give it
to
> your customer and see if it actually works or not.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads