{"width":"100%","published":"2011-09-04 12:14:03","blog_url":"https://ktat.hatenadiary.jp/","author_name":"ktat","type":"rich","blog_title":"Practice of Programming","provider_name":"Hatena Blog","version":"1.0","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fktat.hatenadiary.jp%2Fentry%2F20110904%2F1315106043\" title=\"\u5de8\u5927\u306a\u30d5\u30a1\u30a4\u30eb\u3092get\u3059\u308b\u5834\u5408\u306eLWP::UserAgent\u3068Furl\u306e\u5834\u5408 - Practice of Programming\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["perl"],"url":"https://ktat.hatenadiary.jp/entry/20110904/1315106043","author_url":"https://blog.hatena.ne.jp/ktat/","title":"\u5de8\u5927\u306a\u30d5\u30a1\u30a4\u30eb\u3092get\u3059\u308b\u5834\u5408\u306eLWP::UserAgent\u3068Furl\u306e\u5834\u5408","description":"\u30d0\u30c3\u30c1\u51e6\u7406\u304c\u3084\u305f\u3089\u30e1\u30e2\u30ea\u304f\u3063\u3066\u308b\u3068\u601d\u3063\u305f\u3089\u3001\u306a\u3093\u304b\u304a\u3063\u304d\u3044\u30d5\u30a1\u30a4\u30eb\u3092get\u3057\u3066\u305f\u305b\u3044\u3067\u3057\u305f orz \u4e00\u65e6\u30d5\u30a1\u30a4\u30eb\u306b\u5410\u304d\u51fa\u3057\u3066\u3001\u5f8c\u3067open\u3057\u3066\u4f7f\u3044\u305f\u3044\u3088\u3046\u306a\u5834\u5408\u306f\u3001LWP\u3067\u306f\u3001 my $ua = LWP::UserAgent->new(); $ua->get('http://example.com/big_file.gz', ':content_file' => '/path/to/big_file.gz'); Furl\u306e\u5834\u5408\u3001write_file\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u3061\u3089\u306f\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u3002 my $f = Furl->new(); open my $fh, '>', $filename;\u2026","height":"190","image_url":null}