NETWEBGET and HTTPS

Previous topic - Next topic

r0ber7

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.  :|

Schranz0r

#1
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...
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

r0ber7

#2
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.

dreamerman

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 ;/
Check my source code editor for GLBasic - link Update: 20.04.2020

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Schranz0r

HTTPS is standard nowadays  :D :D :D
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

r0ber7


bigsofty

Never used it but I would imagine you'l need a valid certificate and an SSL API to swap keys to use HTTPS?
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Moru

You can use Cloudflare to get a free one and still use http to your webserver without changing anything except the DNS records.

r0ber7

Quote from: r0ber7 on 2019-Jan-18
Quote from: Schranz0r on 2019-Jan-07
HTTPS is standard nowadays  :D :D :D

This.

Are there plans to include SSL in NETWEBGET calls?

dreamerman

#11
I doubt it, or rather I would say not in nearest future. My previous answer is still accurate, with one big change. If You need it only on Windows/Steam You can use Steam-API for that as it has https GET/POST request, if You need it for leaderboards then Steam also can be used, btw. You can add achievements to Red Wizard Island with this: https://www.glbasic.com/forum/index.php?topic=11268.0

edit: I had some problems with GET requests due newer PHP version, needed to reverse to PHP 5.3, maybe something with my php code, not sure..
Check my source code editor for GLBasic - link Update: 20.04.2020