April 10, 2020, 09:00:26 AM

Author Topic: Monkey-X HTTPS for HTTPREQUEST function  (Read 1512 times)

Offline RonTek

  • Sr. Member
  • ****
  • Posts: 357
Monkey-X HTTPS for HTTPREQUEST function
« on: September 02, 2017, 08:22:32 AM »
How does one make secure https connections using HTTPREQUEST on brl.url class?  Will this just be a quick change on the Open method to https/443?

Code: [Select]
_url=New Url( url,"http",80 )
Thanks.

Offline Xaron

  • Sr. Member
  • ****
  • Posts: 279
Re: Monkey-X HTTPS for HTTPREQUEST function
« Reply #1 on: September 02, 2017, 09:10:34 AM »
Https on Monkey side doesn't work for all targets. Glfw doesn't support it.

But basically yes, it should work that way.

Offline RonTek

  • Sr. Member
  • ****
  • Posts: 357
Re: Monkey-X HTTPS for HTTPREQUEST function
« Reply #2 on: September 02, 2017, 11:40:19 AM »
Https on Monkey side doesn't work for all targets. Glfw doesn't support it.

But basically yes, it should work that way.

Thanks, I'm also wondering why there's no httprequest for glfw. I'm guessing this was not popular with windows/linux desktop builds?

Offline Xaron

  • Sr. Member
  • ****
  • Posts: 279
Re: Monkey-X HTTPS for HTTPREQUEST function
« Reply #3 on: September 02, 2017, 11:42:27 AM »
It was popular but it was quite difficult to make it work so Mark didn't do it.
I did it for Cerberus,so https works for all targets there.

Offline RonTek

  • Sr. Member
  • ****
  • Posts: 357
Re: Monkey-X HTTPS for HTTPREQUEST function
« Reply #4 on: September 02, 2017, 11:55:34 AM »
It was popular but it was quite difficult to make it work so Mark didn't do it.
I did it for Cerberus,so https works for all targets there.

I see. This is kinda weird, but just tried to build that particular mak example

https://github.com/blitz-research/monkey/blob/develop/bananas/mak/httprequest/httprequest.monkey

and set it to glfw3, I do see the brl module which clearly glfw is not listed there, but somehow it works..



Edit: Ok so I see httprequest works on most targets, but not https


Offline Xaron

  • Sr. Member
  • ****
  • Posts: 279
Re: Monkey-X HTTPS for HTTPREQUEST function
« Reply #5 on: September 02, 2017, 12:08:12 PM »
Yes it uses a fallback to http then, no matter if you use https or not. If you want to use https with glfw you have to either use wget or upgrade to cerberus or merge the changes I made back into Monkey. :)

Offline RonTek

  • Sr. Member
  • ****
  • Posts: 357
Re: Monkey-X HTTPS for HTTPREQUEST function
« Reply #6 on: September 02, 2017, 12:22:22 PM »
Yes it uses a fallback to http then, no matter if you use https or not. If you want to use https with glfw you have to either use wget or upgrade to cerberus or merge the changes I made back into Monkey. :)

Yes, that would be the case now. Wow, sort of in the right timing as well, as this was also your latest commit. :)

I was really just looking for a way to secure a leaderboard as much as possible, so https comes to mind and I wonder why this was not even considered back with network communication and now https is now becoming a standard requirement on web/internet to become more secure.

I'm not focusing on desktop builds right now so I guess the default https on android will work?

Now that's out of the way, I'm guessing IPv6 is still lacking with Monkey-X?  :(

Offline Xaron

  • Sr. Member
  • ****
  • Posts: 279
Re: Monkey-X HTTPS for HTTPREQUEST function
« Reply #7 on: September 02, 2017, 12:31:38 PM »
Yes, for Android and iOS https works in Monkey. ipv6 is partially in as well, but I haven't checked for which targets.

Offline RonTek

  • Sr. Member
  • ****
  • Posts: 357
Re: Monkey-X HTTPS for HTTPREQUEST function
« Reply #8 on: September 02, 2017, 12:35:25 PM »
Yes, for Android and iOS https works in Monkey. ipv6 is partially in as well, but I haven't checked for which targets.

Ah great to hear, thanks a lot! :D

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal