AnyEvent-Net-Curl-Queued

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

 - ooops, Mojo can't start/stop several times anymore? (Stanislaw Pusep)
 - Mojo::UserAgent benchmark overhaul (Stanislaw Pusep)
 - setting CURLOPT_POSTFIELDS to a HashRef converts to JSON automatically
   (Stanislaw Pusep)
 - removed useless eval check from AE::N::C::Const (Stanislaw Pusep)
 - useless meta->name removed (Stanislaw Pusep)
 - full perlcritic harsh compliance (Stanislaw Pusep)
 - calming down the perlcritic (Stanislaw Pusep)
 - Dist::Zilla bump (Stanislaw Pusep)
 - better traps for t/70-timeout.t (Stanislaw Pusep)
 - fragment supression tested (Stanislaw Pusep)
 - disabling Net::Curl::* prototypes (Stanislaw Pusep)
 - messing around (Stanislaw Pusep)

0.037 2012-11-25T18:55:34
 - fixed encoding issues revealed by upgrading to Digest::SHA v5.74
   (Stanislaw Pusep)
 - postponing $cv->send to properly destroy ::Multi instance (Stanislaw
   Pusep)
 - followlocation-caused header propagation fix (Stanislaw Pusep)

lib/AnyEvent/Net/Curl/Queued/Easy.pm  view on Meta::CPAN


sub init {
    my ($self) = @_;

    # buffers
    my $data = '';
    $self->set_data(\$data);
    my $header = '';
    $self->set_header(\$header);

    # fragment mangling
    my $url = $self->initial_url->clone;
    $url->fragment(undef);
    $self->setopt(
        Net::Curl::Easy::CURLOPT_URL,           $url->as_string,
        Net::Curl::Easy::CURLOPT_WRITEDATA,     \$data,
        Net::Curl::Easy::CURLOPT_WRITEHEADER,   \$header,
    );

    # common parameters
    if (defined($self->queue)) {
        $self->setopt(
            Net::Curl::Easy::CURLOPT_SHARE,     $self->queue->share,



( run in 1.013 second using v1.01-cache-2.11-cpan-b16cb0d3907 )