WWW class, getting html code?

Hey, I’ve played around with the WWW class recently and I wonder how I am supposed to get content out of my html body from the website.
This example Unity - Scripting API: WWW works fine but I don’t really need textures.
WWW.data or WWW.byte give me weird results, I don’t look through how they work. I have found online highscore examples in the wiki but something simpler would be nice. I don’t need any database or storache things, I just want a string that contains the html code or the content of it.

That is usually stored within WWW.data()

Regards,
Corrupted Heart

I don’t know why but WWW.data works now :o

Before posting it returned only stuff like “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>" and the length of the string was 9966.

That’s usually at the top of HTML pages, if you view the source of this page it will have similar text at the top, it all depends on what the html document you requesting returns.

Regards,
Corrupted Heart

Yea, I don’t remember exactly which page I was connecting too but I think it was mine and was only filled with

<html>
  <head>
  </head>
  <body>
    test
  </body>
</html>

and not 9966 signs long. So maybe WWW.data adds it automatically? But nevermind, maybe it was another url and not my site ^^
Thanks!

No problem