Author Topic: NETWEBGET and HTTPS  (Read 438 times)

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 525
    • View Profile
NETWEBGET and HTTPS
« 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.  :|

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5009
  • O Rly?
    • View Profile
Re: NETWEBGET and HTTPS
« Reply #1 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...
« Last Edit: 2019-Jan-06 by Schranz0r »
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 525
    • View Profile
Re: NETWEBGET and HTTPS
« Reply #2 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.
« Last Edit: 2019-Jan-06 by r0ber7 »

Offline dreamerman

  • Global Moderator
  • Dr. Type
  • *******
  • Posts: 255
    • View Profile
    • my personal website
Re: NETWEBGET and HTTPS
« Reply #3 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 ;/
Check my source code editor for GLBasic - link

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3589
    • View Profile
    • Space Fractal
Re: NETWEBGET and HTTPS
« Reply #4 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.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5009
  • O Rly?
    • View Profile
Re: NETWEBGET and HTTPS
« Reply #5 on: 2019-Jan-07 »
HTTPS is standard nowadays  :D :D :D
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 525
    • View Profile
Re: NETWEBGET and HTTPS
« Reply #6 on: 2019-Jan-18 »
HTTPS is standard nowadays  :D :D :D

This.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2586
    • View Profile
Re: NETWEBGET and HTTPS
« Reply #7 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?
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)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5009
  • O Rly?
    • View Profile
Re: NETWEBGET and HTTPS
« Reply #8 on: 2019-Jan-18 »
yes bigsofty
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1766
    • View Profile
    • Homepage
Re: NETWEBGET and HTTPS
« Reply #9 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.