Thread LWP für eine 400MB CSV-Datei.: kann das gehen...? (12 answers)
Opened by olruebe01 at 2006-12-31 20:45

jan
 2006-12-31 22:02
#9434 #9434
User since
2003-08-04
2536 Artikel
ModeratorIn
[Homepage] [default_avatar]
mit LWP::UserAgent kannst du direkt in eine Datei speichern:
Quote
ua->get( $url )
$ua->get( $url , $field_name => $value, ... )
This method will dispatch a GET request on the given $url. Further arguments can be given to initialize the headers of the request. These are given as separate name/value pairs. The return value is a response object. See HTTP::Response for a description of the interface it provides.

Fields names that start with ":" are special. These will not initialize headers of the request but will determine how the response content is treated. The following special field names are recognized:

:content_file => $filename
:content_cb => \&callback
:read_size_hint => $bytes


http://search.cpan.org/~gaas/libwww-perl-5.805/lib/LWP/UserAgent.pm

View full thread LWP für eine 400MB CSV-Datei.: kann das gehen...?