Solved

A Question About HTTP Program

Posted on 2001-06-05
4
166 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 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

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

16 Experts available now in Live!

Get 1:1 Help Now