Raised This Month: $32 Target: $400
 8% 

[EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system natives


Post New Thread Reply   
 
Thread Tools Display Modes
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 12-12-2014 , 14:56   Re: [EXTENSION] System2 - Internet and Server Functions
Reply With Quote #51

System2_GetPage(CmdCallback:callback, const String:URL[], const StringOST[] = "", const String:useragent[] = "", any:data = INVALID_HANDLE);

Anyway we can get a page content by a GET/POST (optional) call?
Mathias. is offline
VoiDeD
AlliedModders Donor
Join Date: Mar 2009
Location: Illinois, USA
Old 12-13-2014 , 17:30   Re: [EXTENSION] System2 - Internet and Server Functions
Reply With Quote #52

Quote:
Originally Posted by ReFlexPoison View Post
It fails to stay loaded if the dll isn't loaded when the server starts. I don't know if this is how it is for every extension, however when I use sm exts load system2, it says it loads fine, but when I go to check if it is loaded with sm exts list, it says it has failed.
That's been an SM issue with manually loading extensions since as far back as I can remember.

Try running depends on system2 to see what dll dependencies you're missing.
__________________
VoiDeD is offline
Tank Missile
Member
Join Date: Aug 2013
Old 01-02-2015 , 15:28   Re: [EXTENSION] System2 - Internet and Server Functions
Reply With Quote #53

Using the start command to launch an arbitrary window that runs a script will freeze the server until that window closes. I can not input text into the server console when this happens. Also, it would be great if commands could be executed within a specified program, such as powershell, instead of having to find ways within the command line to execute commands into other programs.

EDIT: From further testing with one of the windows created from the runcommand native, certain files do not show up in system32. It does not seem to act like a regular CMD window, but I do not know why.

Last edited by Tank Missile; 01-02-2015 at 22:13.
Tank Missile is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 02-22-2015 , 20:12   Re: [EXTENSION] System2 - Internet and Server Functions
Reply With Quote #54

@Black-Rabbit
Sorry for the late reply.
You can make a GET Request when you just use the URL String and a POST request when using the POST String. Or do you mean something else?

@Tank Missile
I can't control the behavior of the commands directly. So you have to do this by yourself.
__________________

Last edited by dordnung; 02-22-2015 at 20:13.
dordnung is offline
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 05-08-2015 , 03:05   Re: [EXTENSION] System2 - Internet and Server Functions
Reply With Quote #55

Thanks for this!
ImACow is offline
cam0
Senior Member
Join Date: Feb 2015
Old 09-03-2015 , 16:52   Re: [EXTENSION] System2 - Internet and Server Functions
Reply With Quote #56

Using System2_UploadFTPFile, the TransferUpdated callback receives an error on each update, even though there is steady progress and I can confirm the files were 100% uploaded to FTP. This is annoying as it makes it difficult to log actual upload errors.

Also worth noting that the context of these errors is 100% random symbols.
cam0 is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 04-23-2017 , 19:45   Re: [EXTENSION] System2 - Internet and Server Functions
Reply With Quote #57

I've updated the extension to fix some bugs:

- Complete code restructure
- A lot of bug fixes
- Added 7z for 32bit and 64bit linux
- Updated openssl and libcurl to newest versions
- Added command to command callback
__________________
dordnung is offline
e54385991
AlliedModders Donor
Join Date: Aug 2013
Old 05-01-2017 , 12:06   Re: [EXTENSION] System2 - Internet and Server Functions
Reply With Quote #58

Quote:
Originally Posted by Popoklopsi View Post
I've updated the extension to fix some bugs:

- Complete code restructure
- A lot of bug fixes
- Added 7z for 32bit and 64bit linux
- Updated openssl and libcurl to newest versions
- Added command to command callback

Thanks for update

v2.5 must install Visual C++ Redistributable for Visual Studio 2015 x86

Otherwise it will be wrong

https://www.microsoft.com/en-US/down....aspx?id=48145
__________________

Last edited by e54385991; 05-01-2017 at 12:07.
e54385991 is offline
Send a message via ICQ to e54385991
Technoblazed
Senior Member
Join Date: May 2016
Location: United Kingdom
Old 05-02-2017 , 11:22   Re: [EXTENSION] System2 - Internet and Server Functions
Reply With Quote #59

Quote:
Originally Posted by cam0 View Post
Using System2_UploadFTPFile, the TransferUpdated callback receives an error on each update, even though there is steady progress and I can confirm the files were 100% uploaded to FTP. This is annoying as it makes it difficult to log actual upload errors.

Also worth noting that the context of these errors is 100% random symbols.
PHP Code:
Exception reportedFAILUREexpected ''found '6'


Exception reportedFAILUREexpected ''found 'Ž' 
These are the 2 errors you're referring to correct?
Technoblazed is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 05-03-2017 , 19:54   Re: [EXTENSION] System2 - Internet and Server Functions
Reply With Quote #60

I updated system2 and hope it fixes the weird characters:

2.6
- Fixed that the error string on the TransferUpdated callback wasn't empty when there was no error
- Only allowing one FTP connection at the same time, because RFC only allow once
- Added MD5 and CRC32 calculating for strings and files
__________________

Last edited by dordnung; 05-03-2017 at 20:46.
dordnung is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:19.


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