Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Setting up Idhttp indy component to use a proxy server

Posted on 2013-02-06
2
Medium Priority
?
1,851 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 28

Accepted Solution

by:
Sinisa Vuk earned 1500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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 …
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

604 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