Page 1 of 1

POST (and GET) with https

Posted: Sun Mar 20, 2016 3:27 pm
by infratec
Get is possible with ReceiveHTTPMemory().
But at the moment it is not possible (with inbuild stuff) to send a POST request using https.

What I would like to see is that we can use https when using OpenNetworkConnection().

Bernd (from the networking section)

Re: POST (and GET) with https

Posted: Sat Mar 26, 2016 8:12 pm
by Sundance
Copy that. I haven't found anything that helps me in doing https calls under PureBasic. Only some payable external DLL of size 9MB...

Re: POST (and GET) with https

Posted: Sat Mar 26, 2016 8:20 pm
by infratec
That's not true.

On windows only you can use the API.
Or crossplatform you can use libcurl. Simply import the necesarry functions.

http://www.purebasic.fr/english/viewtop ... 13&t=62068

http://www.purebasic.fr/english/viewtop ... 13&t=58824


Bernd

Re: POST (and GET) with https

Posted: Sat Mar 26, 2016 8:29 pm
by Sundance
Did i really overlooked this? Will take a close look into those topics.

Thanks Bernd!

Re: POST (and GET) with https

Posted: Sat Mar 26, 2016 11:30 pm
by infratec
In this thread

http://www.purebasic.fr/english/viewtop ... 12&t=62272

is a pbi for PB > 5.4x
which uses the 'inbuild' libcurl.

Bernd

Re: POST (and GET) with https

Posted: Sat Jun 18, 2016 11:46 am
by tj1010
In-build HTTP functions all support TLS and SSL though I haven't tested certificate revocation handling.

The POST is certainly something sitting at the top of my things_i'm_amazed_aren't_in_pb_because_they_are_so_needed things.. I was surprised when it wasn't in 5.50 B1 so we could round out the HTTP library; don't forget headers with both GET and POST which are only slightly less needed if you interact with the web in your software.