SA-MP Forums Archive
HTTP Get with SLL - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HTTP Get with SLL (/showthread.php?tid=612859)



HTTP Get with SLL - Freaksken - 22.07.2016

Is it possible to send a HTTP Get request with the HTTP function, to a URL that forces SSL?
When I go to https://api.github.com or http://api.github.com in my browser, it works (obviously). But when used with the HTTP function, it has response code HTTP_ERROR_BAD_HOST.
When I use api.github.com it has response code HTTP_ERROR_MALFORMED_RESPONSE.

I saw this thread, but it doesn't really say if there is (another) method to do so. Is there any way I can get this to work?


Re: HTTP Get with SLL - Freaksken - 22.07.2016

Hmmm it seems like it could be due to GitHub authentication.