<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 80: i can't get the contents of page</title><link>https://sourceforge.net/p/simpletest/feature-requests/80/</link><description>Recent changes to 80: i can't get the contents of page</description><atom:link href="https://sourceforge.net/p/simpletest/feature-requests/80/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 09 Mar 2011 23:43:26 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/simpletest/feature-requests/80/feed.rss" rel="self" type="application/rss+xml"/><item><title>i can't get the contents of page</title><link>https://sourceforge.net/p/simpletest/feature-requests/80/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;i'm testing a postback page for some web service.&lt;br /&gt;
and that web service requires to print text/plain response&lt;br /&gt;
if succeed "1"&lt;br /&gt;
if fails "0"&lt;/p&gt;
&lt;p&gt;and web test assumes page could'n load when i return "0" as string.&lt;br /&gt;
i'm putting assert for $this-&amp;gt;get or post method. and it returns false if content is just "0"&lt;/p&gt;
&lt;p&gt;and i'm using this trick:&lt;br /&gt;
this-&amp;gt;assertTrue($this-&amp;gt;get($url), "Postback page couldn't open");&lt;br /&gt;
ob_start();&lt;br /&gt;
$this-&amp;gt;showSource();&lt;br /&gt;
$source = strip_tags(ob_get_contents());&lt;br /&gt;
ob_end_clean();&lt;/p&gt;
&lt;p&gt;it would be great to add getSource like method beside showSource.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 09 Mar 2011 23:43:26 -0000</pubDate><guid>https://sourceforge.netc7742e597346982e026b3859645c502d73dbb97e</guid></item></channel></rss>