Re: [twsocket] Body not send on https post

2017-08-15 Thread Xavier Mor-Mur
Hi RTT Your suggestion has worked perfectly. Thank you so much. Xavi El 15/08/2017 a les 2:06, RTT ha escrit: Surely is there something wrong but I can't figure were is. Try specifying the data content type AnsiString asPost; asPost = PostMemo->Text; SslHttpCli1->SendStream = new TStringS

Re: [twsocket] Body not send on https post

2017-08-14 Thread RTT
Surely is there something wrong but I can't figure were is. Try specifying the data content type AnsiString asPost; asPost = PostMemo->Text; SslHttpCli1->SendStream = new TStringStream(asPost); SslHttpCli1->SendStream->Seek(0,soFromBeginning); SslHttpCli1->ContentTypePost='application/json';

Re: [twsocket] Body not send on https post

2017-08-14 Thread Xavier Mor-Mur
Hi RTT, et al, for previous tips. I assigned text to body but not reset position to start. I modified code but still having same result. I'm playing with OverbyteIcsHttpsTst sample and button "Post" with next code: void __fastcall THttpTestForm::PostButtonClick(TObject *Sender) { try {

Re: [twsocket] Body not send on https post

2017-08-10 Thread RTT
I get error "Body is empty". Is this a ICS error message?! I can't find such message in the ICS code. AnsiString asPost; asPost = PostMemo->Text; SslHttpCli1->SendStream->WriteBuffer(&asPost, asPost.Length()); What kind of stream have you assigned to the SendStream property? Don't forget

Re: [twsocket] Body not send on https post

2017-08-10 Thread Jarek Karciarz
Witam, And after putting the content to the send steam did you call the PutAsync () method of the component? Pozdrawiam Jarek Karciarz -- Od: Xavier Mor-Mur Data: 10 sierpnia 2017 21:20:58 Do: ICS support mailing Temat: [twsocket] Body not send on https post Hello, I still

Re: [twsocket] Body not send on https post

2017-08-10 Thread Jarek Karciarz
Witam, Diod you try to set asPost.c_str () or ws.c_str () instead of putting just the address of the object? Pozdrawiam Jarek Karciarz -- Od: Xavier Mor-Mur Data: 10 sierpnia 2017 21:20:58 Do: ICS support mailing Temat: [twsocket] Body not send on https post Hello, I still

[twsocket] Body not send on https post

2017-08-10 Thread Xavier Mor-Mur
Hello, I still having problems trying to retrieve data from https server using POST. I get error "Body is empty". I can't find where is the error. I tried use this two ways: AnsiString asPost; asPost = PostMemo->Text; SslHttpCli1->SendStream->WriteBuffer(&asPost, asPost.Length()); WideString