A Question About HTTP Program

Posted on 2001-06-05
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.
Question by:hujunyi

Accepted Solution

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...
LVL 13

Expert Comment

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

procedure TForm1.Button1Click(Sender: TObject);
 NMHTTP1.Port := 80;

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

Author Comment

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

Expert Comment

ID: 9285814
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 ! --


EE Cleanup Volunteer

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 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

20 Experts available now in Live!

Get 1:1 Help Now