![]() |
func_http: a simple helper class for POSTing and GETing with cURL
Stefan recently added support for making cURL requests through a GScript wrapper. This allows you to make both POST and GET requests serverside, without requiring Stefan to enable TSocket on your server (as was previously required for making POST requests).
This class is meant both to help document cURL and to be used to simplify repeated requests. It allows you to use a single function to POST or GET data. To use the class, all you need to do is join it and call the appropriate function. Example (GET): PHP Code:
Example (POST): PHP Code:
func_http class: http://pastebin.graalcenter.org/read.php?id=02042935537 |
That is pretty sweet.
|
I'm not interested in Graal/GS2 right now, but I can imagine this will be awesome for scripters. If I'm right, this means that scripters can more easily pass server data to their own web server for things like server stats/player cards?
|
Quote:
|
Making Facebook accessible through Graal, cool
|
Thanks. This is great.
|
| All times are GMT +2. The time now is 09:51 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.