Posted 01 March 2012 - 11:35 PM
Hey,
im messing around with the http api and wondering what http.get() delivers. Meaning the type, and how i can access it.
I tested it with this code i found.
url = "http://www.myside.de/myscript.php"
file = http.get( url )
a = file:readLine()
file:close()
[left]
When i print a it returns the echo of my script and a 1 in the next line. My question is what type of data http.get() returns and how i can access it? I need just the echo of my script to be saved, not this 1.[/left]
im messing around with the http api and wondering what http.get() delivers. Meaning the type, and how i can access it.
I tested it with this code i found.
url = "http://www.myside.de/myscript.php"
file = http.get( url )
a = file:readLine()
file:close()
[left]
When i print a it returns the echo of my script and a 1 in the next line. My question is what type of data http.get() returns and how i can access it? I need just the echo of my script to be saved, not this 1.[/left]