Solved

A Question About HTTP Program

Posted on 2001-06-05
4
171 Views
Last Modified: 2010-04-06
I want write a Program. Send some msg to a http server and use method get. But msg include the char like #0 and
#220. I would want know use TNMHttp send these msg to a http server. Or Other Way.

Thank you.
hujunyi
0
Comment
Question by:hujunyi
[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
4 Comments
 
LVL 4

Accepted Solution

by:
DMN earned 50 total points
ID: 6156942
Within query string you can replace any character with %XX, where XX - hexademical character code...

In your case use %00 for #0 and %DC for 220...
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6157072
Drop TNMHTTP component on a form and use this code:


procedure TForm1.Button1Click(Sender: TObject);
begin
 NMHTTP1.Port := 80;
 NMHTTP1.Get('www.experts-exchange.com');
end;

// OnSuccess event code
procedure TForm1.NMHTTP1Success(Cmd: CmdType);
begin
 Memo1.Text := NMHTTP1.Body;
end;
0
 

Author Comment

by:hujunyi
ID: 6158261
I need send msg include char #0 and other like #220. It could not use TNMHTTP.get(S: string) Method.
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 9285814
hujunyi,
No comment has been added lately (821 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to DMN http:#6156942

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

DragonSlayer
EE Cleanup Volunteer
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Form ownership 4 160
Strange behavior when a form is closed 6 80
CheckListBox usage 3 98
Using MMsystem To change audio input 1 40
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 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