When server use chunked transfer, Document stream contain chunk size  
marker.

Var

  s : String;

Begin

  With THttpSend.Create Do
   Try

    s := '<?xml  
version="1.0"?><methodCall><methodName>system.listMethods</methodName></methodCall>';
    Document.Write(Pointer(s)^, Length(s));

    MimeType := 'text/xml';
    Protocol := '1.1';
    HTTPMethod('POST', 'http://xmlrpc-c.sourceforge.net/api/sample.php');

    SetLength(s, Document.Size);
    Move(Document.Memory^, Pointer(s)^, Length(s));

    ShowMessage(s);

   Finally

    Free;

   End;

End;

-- 
Kazantsev Alexey

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to