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 TStringStream(asPost);
SslHttpCli1->SendStream->Seek(0,soFromBeginning);
SslHttpCli1->ContentTypePost='application/json';
SslHttpCli1->PostASync();


--
Xavier Mor-Mur


---
El software de antivirus Avast ha analizado este correo electrónico en busca de 
virus.
https://www.avast.com/antivirus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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';
SslHttpCli1->PostASync();
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 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.Length());

WideString ws;
ws = PostMemo->Text;
SslHttpCli1->SendStream->WriteBuffer(, ws.Length());

I would appreciate any tip on it.

Thanks in advance

--
Xavier Mor-Mur


---
El software de antivirus Avast ha analizado este correo electrónico en 
busca de virus.

https://www.avast.com/antivirus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

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 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.Length());

WideString ws;
ws = PostMemo->Text;
SslHttpCli1->SendStream->WriteBuffer(, ws.Length());

I would appreciate any tip on it.

Thanks in advance

--
Xavier Mor-Mur


---
El software de antivirus Avast ha analizado este correo electrónico en 
busca de virus.

https://www.avast.com/antivirus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be