logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Plugin: RssViewer / HTTPRequest class doesn't handle URI "correctly": msg#00038

Subject: Re: Plugin: RssViewer / HTTPRequest class doesn't handle URI "correctly"
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';

-- 
Paul Hanchett
mailto://paulha-/CzTsIfkJEdBDgjK7y7TUQ@xxxxxxxxxxxxxxxx
(503) 665-7168



<Prev in Thread] Current Thread [Next in Thread>