Solved

Using sockets with a HTTP proxy in Delphi

Posted on 2003-10-29
5
1,006 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

This is an explanation of a simple data model to help parse a JSON feed
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

713 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