Blockland Forums > Modification Help
HTTPObject
<< < (3/3)
Destiny/Zack0Wack0:
Is there a content-length value? You can work it out from that.
Otherwise you'll just need to add all your data you want to process like so:

PHP

--- Code: ---echo "SOMEMESSAGE\tThe value of this message is this.";

--- End code ---
Torque

--- Code: ---if(getField(%line,0) $= "SOMEMESSAGE")
        echo(getField(%line,1); //should echo "The value of the message is this."

--- End code ---
EDIT: nvm use Iban's method
Bauklotz:
If you don't have access to modifying google.com, and still don't want the headers, you can do something like:

--- Code: ---function tcp::onLine(%this, %line) {
   if(!%this.header && strLen(trim(%line)) < 1)
      %this.header = true;
   else if(%this.header) {
      here's your data, without the header
   }
}

--- End code ---
Remember to set .header to false if you reconnect or something.
Navigation
Message Index
Previous page

Go to full version