ls -la /usr/lib/perl5/site_perl/5.6.1/LWP/Protocol total 96 drwxr-xr-x 2 root root 4096 Mar 10 20:18 . drwxr-xr-x 4 root root 4096 Mar 10 20:18 .. -r--r--r-- 1 root root 1279 Nov 19 1998 data.pm -r--r--r-- 1 root root 3827 Aug 6 2001 file.pm -r--r--r-- 1 root root 17014 Oct 26 2001 ftp.pm -r--r--r-- 1 root root 1823 Apr 9 2001 GHTTP.pm -r--r--r-- 1 root root 5783 Nov 19 1998 gopher.pm -r--r--r-- 1 root root 8459 Oct 26 2001 http10.pm -r--r--r-- 1 root root 10566 Sep 20 2002 http.pm -r--r--r-- 1 root root 1822 Oct 26 2001 https10.pm -r--r--r-- 1 root root 1236 Nov 16 2001 https.pm -r--r--r-- 1 root root 4190 Mar 19 1999 mailto.pm -r--r--r-- 1 root root 3749 Nov 19 1998 nntp.pm -r--r--r-- 1 root root 630 May 5 2001 nogo.pm
LWP only supports a certain list of protocols. mms:// is not one of them. One could certainly learn about the protocol and write mms.pm for LWP, but it appears that no one has done so at this time. If you follow this example, the problem should become more clear:

# Create a user agent object use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->agent("MyApp/0.1 "); # Create a request my $req = HTTP::Request->new(POST => 'http://www.perl.com/cgi +-bin/BugGl impse'); $req->content_type('application/x-www-form-urlencoded'); $req->content('match=www&errors=0'); # Pass request to the user agent and get a response back my $res = $ua->request($req); # Check the outcome of the response if ($res->is_success) { print $res->content; } else { print "Bad luck this time\n"; }
Note the creation of an HTTP::Request object. --isotope
http://www.skylab.org/~isotope/

In reply to Re: Download Streaming Media? by isotope
in thread Download Streaming Media? by Itatsumaki

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.