- Timestamp:
- 05/26/08 00:59:06 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/WWW-YourFileHost/trunk/lib/WWW/YourFileHost.pm
r12012 r12377 11 11 use HTTP::Cookies; 12 12 13 our $VERSION = '0.0 3';13 our $VERSION = '0.04'; 14 14 15 15 sub new { … … 89 89 =head1 SYNOPSIS 90 90 91 use LWP::UserAgent; 91 92 use WWW::YourFileHost; 92 93 my $url = 94 "http://www.yourfilehost.com/media.php?cat=video&file=hoge.wmv"; 93 my $url = "http://www.yourfilehost.com/media.php?cat=video&file=hoge.wmv"; 94 my $ua = LWP::UserAgent->new( agent => "WWW::YourFileHost" ); 95 $ua->cookie_jar( 96 HTTP::Cookies->new( 97 file => '', 98 autosave => 1, 99 ) 100 ); 95 101 my $yourfilehost = WWW::YourFileHost->new( url => $url ); 96 # or my $yourfilehost = WWW::YourFileHost->new( id => $id );97 102 print $yourfilehost->photo . "\n"; 98 103 print $yourfilehost->video_id . "\n";
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)