Solved

A Simple Chat Program using Proxy Server to connect

Posted on 2000-02-13
2
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

739 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