Blockland Forums > Modification Help

How to use HTTPObjects

Pages: << < (4/4)

otto-san:


--- Quote from: Kalphiter on December 24, 2010, 10:38:41 PM ---.get("google.com:80", "/", "");

function asdf::onLine(%this, %line)
{
    echo(%line);
}

--- End quote ---
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

Fluff-is-back:

It is used like this:
for example, if I wanted to execute Google.com/example.php

--- Code: ---.get("google.com:80","/example.php");

--- End code ---
If you need to run a php query such as: example.php?var=var

--- Code: ---.get("google.com:80","/example.php","var=var");

--- End code ---

However queries contaning '&' will not work.

otto-san:

Okay, thanks.

Pages: << < (4/4)

Go to full version