Solved

Using sockets with a HTTP proxy in Delphi

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
This is about my first experience with programming Arduino.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

832 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