GLBasic forum

Main forum => GLBasic - en => Topic started by: r0ber7 on 2019-Jan-06

Title: NETWEBGET and HTTPS
Post by: r0ber7 on 2019-Jan-06
I want to do a NETWEBGET$ to my server. I have tried changing the port to 443, but nothing is coming through. Does NETWEBGET$ allow HTTPS connections? Is there another command in GLBASIC which allows me to communicate with a server using HTTPS?

Before, using a http server and the same code, I had no problems. I hope I do not have to downgrade my server.  :|
Title: Re: NETWEBGET and HTTPS
Post by: Schranz0r on 2019-Jan-06
You can try cURL (Port cURLpp) for that.
I done it a while ago, but with the cURL DLL...
Maybe i can find that, let me search :)

EDIT:
No, delete it...
Title: Re: NETWEBGET and HTTPS
Post by: r0ber7 on 2019-Jan-06
Ok, so the easiest way is just to run my server on HTTP as well. Too bad. Especially because my hosting provider is not very supportive of HTTP anymore.
Title: Re: NETWEBGET and HTTPS
Post by: dreamerman on 2019-Jan-06
I'm not sure, but built-in GlBasic NET* commands are working only on http, https isn't supported.
But on other hand http protocol should be supported on your hosting service, basic stuff like page viewing without user login service doesn't require http, same goes for simple highscores. Are You sure that there is no option to enable http connection in server config even for some particular page that You exactly need?
All depends on what do You need, like for news feed where https isn't needed, there may be some workaround - use some intermediary / proxy site that would be on http server to get proper https feed with some php code.
Inline c++ with some lib also could help but didn't try do to that, for highscores in my game I'm using direct TCP connection to server to have asynchronously download, on http it's working ok.

ps. tried to do pure http request with Fiddler tool to http://redwizardisland.com, but it states that https is required ;/
Title: Re: NETWEBGET and HTTPS
Post by: spacefractal on 2019-Jan-06
is its ok, im move this topic to the bug forum? Currectly glbasic does not support HTTPS, despites is standard today. Glbasic forums should also turn on https, since more more browser require it.
Title: Re: NETWEBGET and HTTPS
Post by: Schranz0r on 2019-Jan-07
HTTPS is standard nowadays  :D :D :D
Title: Re: NETWEBGET and HTTPS
Post by: r0ber7 on 2019-Jan-18
HTTPS is standard nowadays  :D :D :D

This.
Title: Re: NETWEBGET and HTTPS
Post by: bigsofty on 2019-Jan-18
Never used it but I would imagine you'l need a valid certificate and an SSL API to swap keys to use HTTPS?
Title: Re: NETWEBGET and HTTPS
Post by: Schranz0r on 2019-Jan-18
yes bigsofty
Title: Re: NETWEBGET and HTTPS
Post by: Moru on 2019-Jan-28
You can use Cloudflare to get a free one and still use http to your webserver without changing anything except the DNS records.