Solved

A Simple Chat Program using Proxy Server to connect

Posted on 2000-02-13
2
170 Views
Last Modified: 2010-04-04
I wonder if it is possible to create a connection through a Proxy server in the standard internet Components available in Delphi. If it is so, please let me know :o)

Thanx ...
0
Comment
Question by:subrek
2 Comments
 

Accepted Solution

by:
ellessar earned 50 total points
ID: 2517813
Yes you can:

<snippet from delphi 5 help file>

To recreate this example, you will need to create a new blank Delphi application

*NOTE*
If you do not use a proxy server at your current location, you will not be able to use this example. If you are not sure if you are using a proxy server or not, ask your network administrator.

Place a TButton, 2 TEdits, a TMemo, and a TNMHTTP on the form.

Insert the following code into Button1's OnClick event:

procedure TForm1.Button1Click(Sender: TObject);
begin
  if (Edit1.Text <> '') and (Edit2.Text <> '') then
  begin

    NMHTTP1.Proxy := Edit1.Text;
    NMHTTP1.ProxyPort := StrToInt(Edit2.Text);
  end;
  NMHTTP1.Get('http://www.netmastersllc.com');
  Memo1.Text := NMHTTP1.Body;
end;


<end snippet>
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 2517879
Listening
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

23 Experts available now in Live!

Get 1:1 Help Now