Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

A Question About HTTP Program

Posted on 2001-06-05
4
Medium Priority
?
175 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
4 Comments
 
LVL 4

Accepted Solution

by:
DMN earned 200 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

877 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