Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I used the LWP::UserAgent to get the rss feed from a https site. But when I print the content I get only the structure of the web page I dont get the xml content(when I open the rss feed i can see the content). Can you please help me with this?
use LWP::UserAgent; $ua = LWP::UserAgent->new; $req = HTTP::Request->new(GET => 'https://paypal.com'); $res = $ua->request($req); if ($res->is_success) { print ($res->content); }
Thank you, Akhila

Replies are listed 'Best First'.
Re: get rss feeds from web
by daxim (Curate) on Jul 18, 2007 at 00:02 UTC
    https://paypal.com/ redirects to https://www.paypal.com/. Apparently, there is no RSS feed. No browser I have offers me feeds; and I looked into the document source for RSS or Atom, nothing there.

    What you need to do is get the exact feed location.