Sample HTTPS Post Using WIN API

Share your advanced PureBasic knowledge/code with the community.
infratec
Always Here
Always Here
Posts: 7620
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Sample HTTPS Post Using WIN API

Post by infratec »

http://www.purebasic.fr/english/viewtop ... 24&start=0

There you can find an example with DELETE and GET, it should be not a problem to modify it for POST.
It's from 2014 :mrgreen:
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: Sample HTTPS Post Using WIN API

Post by QuimV »

:D OK @RichAlgeni
Thanks
QuimV
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Sample HTTPS Post Using WIN API

Post by Kwai chang caine »

Thanks for sharing 8)

Unfortunately i'm behind a PROXY and your code not works
Even if i have enter Login / Password in this line

Code: Select all

InternetConnect_(internetHandle, webServer, #INTERNET_DEFAULT_HTTPS_PORT, "Login", "Password", #INTERNET_SERVICE_HTTP, 0, 0)
The code waiting at this line :cry:

Code: Select all

 requestResponse = HttpSendRequest_(requestHandle, "", 0, "", 0)
ImageThe happiness is a road...
Not a destination
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: Sample HTTPS Post Using WIN API

Post by RichAlgeni »

User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Sample HTTPS Post Using WIN API

Post by Kwai chang caine »

Thanks for your answer 8)
ImageThe happiness is a road...
Not a destination
Post Reply