Solved

Setting up Idhttp indy component to use a proxy server

Posted on 2013-02-06
2
1,731 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

707 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