Thread Request strings
(4 answers)
Opened by Kuerbis at 2015-05-21 12:08
Wie kann ich am besten herausfinden, welche Anfrage-Strings diese zwei Beispiele zum Server schicken?
Code (perl): (dl
)
1 2 3 4 5 6 7 my $ua = LWP::UserAgent->new( agent => $useragent ); open my $fh, '>:raw', $file or die $!; my $res = $ua->get( $url, ':content_cb' => _return_callback( $fh ), ); #close $fh; Code (perl): (dl
)
1 2 3 4 5 6 7 8 my $ua = Mojo::UserAgent->new(); $ua->transactor->name( $useragent ); my $tx = $ua->build_tx( GET => $url ); #$tx->res->max_message_size( 0 ); #open my $fh, '>:raw', $file or die $!; #$tx->res->content->on( read => _return_callback( $fh ) ); #$ua->start( $tx ); #close $fh; |