Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

string trim qustion

wrable Amat
Registered User
Join date: 23 May 2008
Posts: 25
01-27-2010 20:25
when I try to trim the HTTPRequest so deleet the meta data I can not seem to remove it and have the body value only.

I get the html and body meta data.

If I just wanted the body text to return to set a objects desc with out any other metadata.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-27-2010 21:11
I'm not sure I understand.... you get the page body back separately than any metadata in the default body...

do you mean meta tags that are actually in the page?

you can search for the html body tag, get it's position, and delete everything up to it befor hand (you can do the same for the close body tag)

vIdxFnd = llSubStringIndex( body, "body>" ) + 5; //-- couldn't use the full tag, becuase the forum is stupid
body = llGetSubString( body, vIdxFnd, -1 ); //-- ignores everything up to the body tag
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
jeaniesing Trilling
Loves to animate & script
Join date: 21 Oct 2006
Posts: 61
01-28-2010 13:25
any method will only return a set number of characters? if what you need has too many characters then you will need to alter the webpage to bring back the correct data
_____________________
Pinastri/113/171/30