Re: [twsocket] Body not send on https post
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-MurData: 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
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-MurData: 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
[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
Re: [twsocket] Role of Error in Socket OnConnectedEvents
> In the ICS Socket components's OnSessionConnected / > OnClientConnect events you are passing Error parameter. When will > this get a value ?If the OnConnected events are triggered does it > mean connection is active or is it only if Error=0 ? OnSessionConnected or OnClientConnect should always be triggered after a Connect attempt to indicate it has finished, with Error=0 if successful. For instance, SSL negotiation only starts for Error=0. If not zero, GetWinsockErr (Error) will give you a string error message. For instance, there may be DNS lookup failure. You may want to trigger a repeat connection attempt. But not all the derived components and samples actually check Error. Angus -- 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
[twsocket] Role of Error in Socket OnConnectedEvents
Hi, In the ICS Socket components's OnSessionConnected / OnClientConnect events you are passing Error parameter. When will this get a value ?If the OnConnected events are triggered does it mean connection is active or is it only if Error=0 ? RegardsAllan Fernandes -- 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