AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Socket] Request over SSL (https://forums.alliedmods.net/showthread.php?t=276692)

johnally 12-26-2015 12:20

[Socket] Request over SSL
 
Hi all,

I am currently trying to send some requests towards a web server running SSL. I am using the module "Winsock" by Bugsy and so far it performs very well if I send requests towards a web server not running SSL.

I tried every socket module I could find on alliedmodders but none actually support SSL.
Eventually, I tried dummy approaches as connecting to the SSL port directly (i.e 443) and tried to send my requests but as you'd guess, plain http requests do not go through even how much I pray to the socket god :(

Is there a way to do a GET/POST request towards a web server running SSL using amxmodx?

P.S If you are not sure, it does not matter! All I need is some pointers towards what to research exactly. So post a link that you think can be useful for anyone facing same dilemma :)

Thank you a lot!

addicted2sex 12-26-2015 20:27

Re: [Socket] Request over SSL
 
Quote:

Originally Posted by johnally (Post 2376470)
Hi all,

I am currently trying to send some requests towards a web server running SSL. I am using the module "Winsock" by Bugsy and so far it performs very well if I send requests towards a web server not running SSL.

I tried every socket module I could find on alliedmodders but none actually support SSL.
Eventually, I tried dummy approaches as connecting to the SSL port directly (i.e 443) and tried to send my requests but as you'd guess, plain http requests do not go through even how much I pray to the socket god :(

Is there a way to do a GET/POST request towards a web server running SSL using amxmodx?

P.S If you are not sure, it does not matter! All I need is some pointers towards what to research exactly. So post a link that you think can be useful for anyone facing same dilemma :)

Thank you a lot!

Encrypting data for a SSL channel is only possible if an OpenSSL-like library is included in the module. As far as I know none of the socket modules for AMXX have that ability and with reason - sending and receiving data through SSL/TLS protocols is not so easy to implement.

johnally 12-27-2015 00:01

Re: [Socket] Request over SSL
 
Indeed I would think so. I don't mind rolling my own module (sort-of an adaptation of another module but with SSL/TLS support. It will be a hell maybe but oh well)

I just wanted to be sure that, since amxmodx and metamod do not restrain only to alliedmodders, if there was a solution out there thought by someone.


All times are GMT -4. The time now is 17:50.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.