Recent

Author Topic: Synapse https post  (Read 12739 times)

johnybe2003

  • Newbie
  • Posts: 2
Synapse https post
« on: April 21, 2011, 04:00:26 pm »
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: [Select]
var s:tstrings;
begin
  s:=tstringlist.create;
  HttpGetText('https://api.efactureaza.ro/nomenclator/index/',s);
  showmessage(s.text); 

Thank you!

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Synapse https post
« Reply #1 on: April 21, 2011, 05:13:35 pm »
What do you get instead?

johnybe2003

  • Newbie
  • Posts: 2
Re: Synapse https post
« Reply #2 on: April 22, 2011, 10:29:33 am »
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

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Synapse https post
« Reply #3 on: April 22, 2011, 08:45:58 pm »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1946
Re: Synapse https post
« Reply #4 on: April 23, 2011, 12:01:46 pm »

 

TinyPortal © 2005-2018