Interesting, Moritz. I wonder if adding the text of
'?'.UriInfo->get('query')
shouldn't be predicated on get('query') being non-empty?
Paul
On Wednesday 10 August 2005 02:02 pm, Moritz Bechler wrote:
I wanted to embed a feed generated by WordPress into my wiki. CoWiki
said the format wasn't supported so I looked for a reason for this
behaviour. When using debug output first in RssManager and then in
HTTPRequest I realized the index page of wordpress has been loaded.
The reason for this was
$aHeader[] = 'GET '.$UriInfo->get('path') . ' HTTP/1.0';
where there is no query string appended. So fetching a dynamic page
(using get parameters) isn't possible using HTTPRequest while WordPress
uses index.php?feed=rss for generating a RSS feed.
The most simple solution for me was to change the line mentioned above to
$aHeader[] = 'GET '.$UriInfo->get('path') . '?' .
$UriInfo->get('query') . ' HTTP/1.0';