POST (and GET) with https

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

POST (and GET) with https

Post 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)
Sundance
User
User
Posts: 16
Joined: Sat Jun 07, 2014 10:12 am

Re: POST (and GET) with https

Post 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...
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: POST (and GET) with https

Post 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
Sundance
User
User
Posts: 16
Joined: Sat Jun 07, 2014 10:12 am

Re: POST (and GET) with https

Post by Sundance »

Did i really overlooked this? Will take a close look into those topics.

Thanks Bernd!
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: POST (and GET) with https

Post 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
tj1010
Enthusiast
Enthusiast
Posts: 716
Joined: Mon Feb 25, 2013 5:51 pm

Re: POST (and GET) with https

Post 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.
Post Reply