Author Topic: How to use HTTPObjects  (Read 1183 times)

.get("google.com:80", "/", "");

function asdf::onLine(%this, %line)
{
    echo(%line);
}
thanks for explaining as well as you did.

now i just need to know better how to use the get function, if i dont find it out by experimenting

It is used like this:
for example, if I wanted to execute Google.com/example.php
Code: [Select]
.get("google.com:80","/example.php");
If you need to run a php query such as: example.php?var=var
Code: [Select]
.get("google.com:80","/example.php","var=var");

However queries contaning '&' will not work.
« Last Edit: December 29, 2010, 04:02:08 AM by Fluff-is-back »