Solved

Setting up Idhttp indy component to use a proxy server

Posted on 2013-02-06
2
1,650 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 26

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
fizzArray2 challenge 1 89
Line meaning 9 87
find a node in VST 2 70
Delphi: barcode reading on android platform 1 51
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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

792 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