Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Nov : Sending control characters in Post data
| Subject: | Sending control characters in Post data |
| Posted by: | "Doug Munday" (dmund..@eims-inc.com) |
| Date: | Thu, 17 Nov 2005 18:59:46 |
I'm stuck again. I need to send a particular message string via http Post -
this message string needs to start with a STX ($02) and end with a ETX ($03)
control characters. Here is what I've tried.
MyMsg := chr($02) + Msg + chr($03)
result (by sniffing the output) is <contents of Msg>%03 (the $02 was
removed - was not in output - and the $03 was converted to a 3 byte "%03"
If I put a % in front of the first control character...like this
MyMsg := '%' + chr($02) + Msg + chr($03)
result is $02(1 byte control character - good!)<contents of
Msg>%03 (3 bytes again - bad ??)
Also, I am sending MyMsg with
MyResponse := MyIdhttp.Post(HostAddress, MyMsg);
It seems like something in the message is triggering the Indy client to
alter how control characters are handled. I've never had to deal with
control characters embedded within http before, and wish I didn't have to,
but I am not making the rules in this case :( - so I'm a bit lost. Any help
would be appreciated.
Oh, we are using Indy 9. Thanks!
Doug