Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   requesturl POST Support (https://forums.graalonline.com/forums/showthread.php?t=86146)

fowlplay4 06-02-2009 05:13 PM

requesturl POST Support
 
Well it would be nice if we could use POST instead of GET methods for data in Graal to web server interaction.

In theory I'd do it like this..

PHP Code:

temp.postdata = {
  {
"testvar""testvalue"},
  {
"othervar""othervalue"}
};
temp.req requesturl(urlpostdata); 

Then on the webserver

PHP Code:

<?php
  
echo("testvar = " $_POST["testvar"] . "<br>");
  echo(
"othervar = " $_POST["othervar"]);
?>

After all that would return..

PHP Code:

testvar testvalue
othervar 
othervalue 


cbk1994 06-02-2009 09:15 PM

From what I understand, this is already possible, but it requires Stefan to enable sockets on your server.

Riot 06-02-2009 09:27 PM

Quote:

Originally Posted by cbk1994 (Post 1496461)
From what I understand, this is already possible, but it requires Stefan to enable sockets on your server.

I asked about getting something like this when he mentioned using POST on the TwitterBot page and he responded with using sockets for it:
http://forums.graalonline.com/forums...8&postcount=13


All times are GMT +2. The time now is 04:39 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.