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
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';
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 {
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
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
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
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