#80 i can't get the contents of page

open
nobody
Web tester (21)
5
2011-03-09
2011-03-09
Anonymous
No

i'm testing a postback page for some web service.
and that web service requires to print text/plain response
if succeed "1"
if fails "0"

and web test assumes page could'n load when i return "0" as string.
i'm putting assert for $this->get or post method. and it returns false if content is just "0"

and i'm using this trick:
this->assertTrue($this->get($url), "Postback page couldn't open");
ob_start();
$this->showSource();
$source = strip_tags(ob_get_contents());
ob_end_clean();

it would be great to add getSource like method beside showSource.

Discussion