HTTPS request
#1

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 ?
Reply
#2

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

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
Reply
#4

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.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)