Okay, from the beginning. I am locally hosting a website and I have a PHP script which contains this:
<?php
file_put_contents("./stuff.txt",$_GET["variable"]);
?>
And then in TS, I do this:
new HTTPObject(Intrastuff);
Intrastuff.get("localhost:80","/filename.php?variable=nothing");
Okay, on the server, before running the TS code, there is no file except filename.php
Now I run the TS code, and a file called stuff.txt is created. I open it, and the contents are just blank, "".
I tried making it echo the $_GET["variable"], but its still just "". I'm guessing this is a problem with TS.
How would I properly send a request of the PHP script, but passing arguments?