BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Proxy server and TIdHTTP

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web)
View previous topic :: View next topic  
Author Message
Franco
Guest





PostPosted: Sat Mar 05, 2005 5:29 pm    Post subject: Proxy server and TIdHTTP Reply with quote



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


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sun Mar 06, 2005 9:04 pm    Post subject: Re: Proxy server and TIdHTTP Reply with quote




"Franco" <nope (AT) nope (DOT) com> wrote


Quote:
I am not sure how to do this.

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

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

Yes.

Quote:
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



Back to top
Franco
Guest





PostPosted: Mon Mar 07, 2005 3:06 pm    Post subject: Re: Proxy server and TIdHTTP Reply with quote



Thanks Remy.

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote
[...]
Quote:
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.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.