ID:260103
 
world.Export helpfile entry wrote:
Note that the HTTP request is submitted using the GET method
as opposed to the POST method. Support for POST may be added
in the future.

So... how 'bout it? =D
Dm Side

world.Export("http://localhost/index.php?name=[src.name]")


Index.php side

$name=$HTTP_GET_VARS['name'];
In response to A.T.H.K
I think he knows. The point is that he wants to use the POST method. You're demonstrating the GET method (the only method that BYOND currently supports).

I support the feature request, POST would be useful. =)
In response to Crispy
Yea it would be
In response to Crispy
BYOND actually does support POST. Just change the form method to post. Although I'm pretty sure that only works in DMCGI.
In response to DarkView
DarkView wrote:
BYOND actually does support POST.

Not for world.Export() requests.
In response to A.T.H.K
I also believe that
$name = $_GET['name'];

Is a better method than HTTP_GET_VARS
I think I read it somewhere along the line.
Damn PHP for having different functions that do almost the exact same thing <.<

And yes, up with POST!
In response to Tiberath
Tiberath wrote:
I also believe that
> $name = $_GET['name'];
>

Is a better method than HTTP_GET_VARS
I think I read it somewhere along the line.
Damn PHP for having different functions that do almost the exact same thing <.<

Yes. $_GET supersedes $HTTP_GET_VARS. The name is different for complicated scope reasons that I don't want to get into now for fear of hijacking this thread further. =)