Changeset 15701 for lang/perl/WWW-YourFileHost/trunk/lib
- Timestamp:
- 07/12/08 19:43:28 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/WWW-YourFileHost/trunk/lib/WWW/YourFileHost.pm
r12377 r15701 91 91 use LWP::UserAgent; 92 92 use WWW::YourFileHost; 93 use Perl6::Say; 94 93 95 my $url = "http://www.yourfilehost.com/media.php?cat=video&file=hoge.wmv"; 94 96 my $ua = LWP::UserAgent->new( agent => "WWW::YourFileHost" ); 95 $ua->cookie_jar( 96 HTTP::Cookies->new( 97 file => '', 98 autosave => 1, 99 ) 100 ); 101 my $yourfilehost = WWW::YourFileHost->new( url => $url ); 102 print $yourfilehost->photo . "\n"; 103 print $yourfilehost->video_id . "\n"; 104 print $yourfilehost->embed . "\n"; 97 $ua->cookie_jar( HTTP::Cookies->new ); 98 my $yourfilehost = WWW::YourFileHost->new( url => $url , ua => $ua ); 99 say $yourfilehost->photo; 100 say $yourfilehost->video_id; 101 say $yourfilehost->embed; 105 102 106 103
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)