AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system natives (https://forums.alliedmods.net/showthread.php?t=146019)

dordnung 04-16-2021 17:12

Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
 
You're absolutely right, it was a bit thoughtless to make that change. I have reverted it and published a new version.
Thanks for the hint!

SpirT 05-04-2021 13:48

Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
 
One little question. I have a php request like https://domain.com/index.php?content=somethinghere.
Then, the page will be blank with a simple number: 0 or 1.

I just didn't understand how to use this extension to get the body content and store it in a string...

Can somebody explain that or provide any base source?

Best Regards.

dordnung 05-04-2021 15:21

Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
 
I've already answered your previous question on this...:

https://forums.alliedmods.net/showpo...&postcount=119

Ryan2 06-19-2021 11:36

Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
 
Excuse my ignorance but this script will allow any file on the game server to be uploaded to an external FTP?

canadianjeff 12-01-2021 06:22

Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
 
could you maybe add an example on doing https? for GET/POST etc?

oh also seems to require a version of GLIBC that I dont have

meta load addons/sourcemod/extensions/system2.ext.so
Failed to load plugin addons/sourcemod/extensions/system2.ext.so (bin/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /opt/steam/L4D2_LAST_STAND/left4dead2/addons/sourcemod/extensions/system2.ext.so)).

LionCrest 12-19-2021 19:50

Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
 
Quote:

Originally Posted by canadianjeff (Post 2764757)
could you maybe add an example on doing https? for GET/POST etc?

oh also seems to require a version of GLIBC that I dont have

meta load addons/sourcemod/extensions/system2.ext.so
Failed to load plugin addons/sourcemod/extensions/system2.ext.so (bin/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /opt/steam/L4D2_LAST_STAND/left4dead2/addons/sourcemod/extensions/system2.ext.so)).


Though, very inconvenient, this can be fixed manually:

PHP Code:

# Install lib32stdc++6, if your system doesn't have it:
# $ apt-get update && apt-get install lib32stdc++6
mv /<path_to_l4d2_server>/bin/libstdc++.so.6 /<path_to_l4d2server>/bin/libstdc++_old.so.6
mv /<path_to_l4d2_server>/bin/dedicated/libstdc++.so.6 /<path_to_l4d2_server>/bin/dedicated/libstdc++_old.so.6
ln -/usr/lib32/libstdc++.so.6 /<path_to_l4d2server>/bin/libstdc++.so.6
ln -/usr/lib32/libstdc++.so.6 /<path_to_l4d2server>/bin/dedicated/libstdc++.so.6 

I've been running my servers with this for more than a year on Debian 8 and never experienced an issue.

Whenever you validate your server files with SteamCMD (app_update 222860 validate) it will re-download the original bin/lib32stdc++.so.6 and bin/dedicated/lib32stdc++.so.6 files, so you will have to symlink the system version again.

You may try setting file's permissions as read-only (chmod 0444), but i didn't do that, because I don't think that's a very good idea.

paulo_crash 01-18-2023 11:50

Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
 
Has anyone had or is having problems downloading and being blocked by both the browser and antivirus?

https://github.com/dordnung/System2/issues/20

It is being blocked because it says it has malware.

freak.exe_uLow 01-24-2023 10:26

Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
 
Quote:

Originally Posted by paulo_crash (Post 2797464)
Has anyone had or is having problems downloading and being blocked by both the browser and antivirus?

https://github.com/dordnung/System2/issues/20

It is being blocked because it says it has malware.

Hey and not really, i can share the file via discord for you if you need it

Zeky 01-27-2023 08:21

Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
 
Quote:

Originally Posted by paulo_crash (Post 2797464)
Has anyone had or is having problems downloading and being blocked by both the browser and antivirus?

https://github.com/dordnung/System2/issues/20

It is being blocked because it says it has malware.

I belive ita becuase you download direct .dll thats being automatic deleted / not allowed... Try to download it from releases (.zip file)

kaju666 12-18-2023 15:06

Re: [EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system nativ
 
Quote:

Originally Posted by LionCrest (Post 2766522)
Though, very inconvenient, this can be fixed manually:

PHP Code:

# Install lib32stdc++6, if your system doesn't have it:
# $ apt-get update && apt-get install lib32stdc++6
mv /<path_to_l4d2_server>/bin/libstdc++.so.6 /<path_to_l4d2server>/bin/libstdc++_old.so.6
mv /<path_to_l4d2_server>/bin/dedicated/libstdc++.so.6 /<path_to_l4d2_server>/bin/dedicated/libstdc++_old.so.6
ln -/usr/lib32/libstdc++.so.6 /<path_to_l4d2server>/bin/libstdc++.so.6
ln -/usr/lib32/libstdc++.so.6 /<path_to_l4d2server>/bin/dedicated/libstdc++.so.6 

I've been running my servers with this for more than a year on Debian 8 and never experienced an issue.

Whenever you validate your server files with SteamCMD (app_update 222860 validate) it will re-download the original bin/lib32stdc++.so.6 and bin/dedicated/lib32stdc++.so.6 files, so you will have to symlink the system version again.

You may try setting file's permissions as read-only (chmod 0444), but i didn't do that, because I don't think that's a very good idea.


THANK YOU! you solved my issue :)
i use alma linux 9, copied libstdc++.so.6 from /lib to /bin of the server and it working :)


All times are GMT -4. The time now is 22:54.

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