Solved

Using sockets with a HTTP proxy in Delphi

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SUM 2 INTEGER ARRAYS INTO 1 10 100
program a usb light to turn on when needed 7 61
Excel file not created as expected 7 72
Problem to picture file 20 50
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This video teaches viewers about errors in exception handling.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

776 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