Solved

Setting up Idhttp indy component to use a proxy server

Posted on 2013-02-06
2
1,574 Views
Last Modified: 2013-02-07
I recently added the ability for our program to connect to the bing tile server and use the bing map as an overlay for our map. My work was primarily on writing the section of code that constructs the URL and uses the INDY Idhttp component to communicate with web (it basically acts as a browser so we can display the tiles on a form rather than a webpage). Recently several clients have stated that they are unable to to access the tile server. We quickly realized it was environment specific. Two clients resolved this by adding exceptions to there Firewall settings. The remaining client uses a Proxy server, which we never planned for. Is anyone familiar with setting up the Idhttp component to use a proxy server? What are the parameters and or settings that must be used? Any help pointing me in the right direction would be greatly appreciated. I am fairly new to the concept of Proxy servers. Thanks in advance.
0
Comment
Question by:HopeRidesAlone
2 Comments
 
LVL 25

Accepted Solution

by:
Sinisa Vuk earned 500 total points
ID: 38862944
Setting proxy in indy is easy, just requires some lines of code. Follow this links for more help.
http://www.indyproject.org/KB/howdoiuseaproxywithindy.htm
https://forums.embarcadero.com/thread.jspa?threadID=76749

...this links is helpful for detecting user proxy settings:
http://stackoverflow.com/questions/8961257/detecting-ie-proxy-settings-and-using-with-tidhttp
http://stackoverflow.com/questions/2013802/how-can-a-delphi-application-detect-the-network-proxy-settings-of-a-windows-pc

...basically, you should use event SelectProxyAuthorization where you can set Proxy class
(for different type of proxy authorization) and event OnProxyAuthorization where you must set proxy settings (detected from IE or from some file) .

...If you encounter some "strange" errors or problems with Indy - think  about very good
Internet Component Suite
0
 

Author Closing Comment

by:HopeRidesAlone
ID: 38865016
Good reference material, thanks for sending me in the right direction.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
code issue 8 85
no14 challenge 14 57
post4 challenge 28 83
Not needed 13 57
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now