Solved

Using sockets with a HTTP proxy in Delphi

Posted on 2003-10-29
5
992 Views
Last Modified: 2013-11-13
I have written an application that communicates with sockets and retreives and sends information to a webpage (with PHP and Login). Now i wanted to use it at work, but I realised that in the office there is no direct connection to the internet. My working computer connect to the internet through a http proxy. So I wanted to make it possible to set a proxy and a port in my program. But I cant find any example programs in this. I have told that it can be done by sending some commands to the proxy and using CR/LF. But I need more specific details on this. So I need an example source or an exmplanion on how to connect and retrieve and send information to a webpage through http proxy with delphi socket components. Or I need a component that can be configured to use a proxy.

Thanks in advance.
0
Comment
Question by:mogy3e
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
bhagyesht earned 300 total points
ID: 9640262
if you have visual studio then use the inet control by large the simplest.

another is to use winsock a vb example is at

http://www.vbip.com/winsock/winsock_http_03_01.asp
it works fine.
0
 
LVL 9

Expert Comment

by:bhagyesht
ID: 9640267
its for vb but the fundamental is the same. send a request to the proxy's port
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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 …
This is about my first experience with programming Arduino.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

708 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

13 Experts available now in Live!

Get 1:1 Help Now