I need a library to encode as JSON and HTTP POST, GET
I'm writing a plugin and I want to send end game stats and other information to a web page (maybe REST API).
Is there a amxx library I can use for this? Also, is there any way to encode the information as JSON? |
Re: I need a library to encode as JSON and HTTP POST, GET
yes, use Curl/sockets to transfer data to a webpage and use latest amxx version to work with Json
|
Re: I need a library to encode as JSON and HTTP POST, GET
Can you give me some examples or some tutorials to start with?
I could also use TCP/UDP to send information to a server I guess, if it's easier than HTTP + json. |
Re: I need a library to encode as JSON and HTTP POST, GET
I found HTTP:X for HTTP POST. Is it the best option?
|
Re: I need a library to encode as JSON and HTTP POST, GET
Curl is overall better though.
There are examples on github, one is even named "http_post_json.sma". https://github.com/Next21Team/AmxxCu...r/amx_examples |
Re: I need a library to encode as JSON and HTTP POST, GET
Quote:
I'm getting some errors. |
Re: I need a library to encode as JSON and HTTP POST, GET
Quote:
|
Re: I need a library to encode as JSON and HTTP POST, GET
Plugins compiled with 1.9.0 should work on 1.8.2 server, right?
|
Re: I need a library to encode as JSON and HTTP POST, GET
Quote:
|
Re: I need a library to encode as JSON and HTTP POST, GET
Quote:
So I cannot use the new libraries and stuff, right? |
All times are GMT -4. The time now is 12:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.