Monkey-X HTTPS for HTTPREQUEST function

Started by RonTek, September 02, 2017, 08:22:32

Previous topic - Next topic

RonTek

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?

_url=New Url( url,"http",80 )

Thanks.

Xaron

#1
Https on Monkey side doesn't work for all targets. Glfw doesn't support it.

But basically yes, it should work that way.

RonTek

Quote from: Xaron on September 02, 2017, 09:10:34
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?

Xaron

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.

RonTek

#4
Quote from: Xaron on September 02, 2017, 11:42:27
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


Xaron

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

RonTek

Quote from: Xaron on September 02, 2017, 12:08:12
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?  :(

Xaron

Yes, for Android and iOS https works in Monkey. ipv6 is partially in as well, but I haven't checked for which targets.

RonTek

Quote from: Xaron on September 02, 2017, 12:31:38
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