Hi,

I just learn the mojo framework, it's a good web framework.

but when I test the example on the website, I test this example
http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Large-file-downloads

use Mojo::UserAgent;
# Fetch the latest Mojolicious tarballmy $ua = 
Mojo::UserAgent->new(max_redirects => 5);my $tx = 
$ua->get('https://www.github.com/kraih/mojo/tarball/master');
$tx->res->content->asset->move_to('mojo.tar.gz');


this code doesn't work for me, it indeed generate a new file mojo.tar.gz, 
but the size is 0B.  
While I tried changing the url into some others file, it works.
 Also I tried using the command 'wget 
https://www.github.com/kraih/mojo/tarball/master 
-p mojo.tar.gz' on mac, it can download the mojo tarball.

I don't know why the code snippet above doesn't work for the mojo tarball.

Thanks,
Peng

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to