Forum > Networking and Web Programming
Synapse https post
(1/1)
johnybe2003:
Do you guys know how I can post data on https link with synapse, i have managed to do that but it takes about 2 or 3 seconds to get the response(on lnet) i can't get it to work with synapse, this is my code
--- Code: ---var s:tstrings;
begin
s:=tstringlist.create;
HttpGetText('https://api.efactureaza.ro/nomenclator/index/',s);
showmessage(s.text);
--- End code ---
Thank you!
Leledumbo:
What do you get instead?
johnybe2003:
When I am not using https in the url, i get the string, and it's all ok, but with https all I get is a blank string.
Leledumbo:
I can't find any one-function call solution, it looks like you have to use one of the classes, call SSLDoConnect then check LastError to see whether it can connect successfully or not, and if everything OK you should get what you want.
theo:
Have you read this?
http://synapse.ararat.cz/doku.php/public:howto:sslplugin
Navigation
[0] Message Index