Solved

A Question About HTTP Program

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
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…

685 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