A.J. Venter wrote:
Hi,
I'm trying to write a really simple SOAP client, to send SMS's with.
At least, it's really simple in THEORY.
My code is below, I checked it - in string the content is perfect, and
it is posting. But it kept failing, so enventualy I sniffed it, it's
POSTING it as garbage - it looks like ansi-text being read by a UTF
reader but it could be something else.
My best theory is that my document.write call is broken - I translated
that one from the synapse Delphi example - any suggestions ?
A.J.
procedure TForm1.Button1Click(Sender: TObject);
begin
:::
HTTP := THTTPSend.Create;
U := AnsiToUTF8(S);
HTTP.Document.StrWrite(Pchar(U));
What is the declaration of "U" and "HTTP.Document.StrWrite"
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives