SA-MP Forums Archive
HTTPS request - 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: HTTPS request (/showthread.php?tid=550322)



HTTPS request - dudaefj - 12.12.2014

Hello

is there a way to send HTTPS request?

I know HTTP() but it doesn't send secure SSL connection, so, is there a way to send SSL with SAMP ?


Re: HTTPS request - Clad - 12.12.2014

https://sampforum.blast.hk/showthread.php?tid=333934


Re: HTTPS request - dudaefj - 12.12.2014

I know and love this plugin
But I don't know how to create and estabilish a https connection using socket
I can learn but with the time I have to make stuff I would prefer to make it as plan B


Re: HTTPS request - Vince - 12.12.2014

Well SA-MP doesn't support SSL so there is currently no way to make a secure connection. Either you use the socket plugin with SSL support, or you write your own plugin. HTTPS request go through port 443. I'm not sure if the plugin does automatic DNS lookup, so you may have to translate its domain name to its IP address (a dedicated IP is a requirement to set up HTTPS, so there is no way there are other sites hosted on that IP). Then send a HTTP header.

Код:
"GET /path/to/file.php HTTP/1.1\r\n"
I'm not sure if any more headers are required. You may want to look that up in RFC 2616.


Re: HTTPS request - dudaefj - 12.12.2014

hmm... that is sad...
but very informative, thank you Vince. +rep for you.