Help for this page

Select Code to Download


  1. or download this
     if ($self->timeout_ms) {
                unless ($WWW::Curl::Easy::CURLOPT_TIMEOUT_MS) {
                    croak( "Your trying to use timeout_ms, but your libcur
    +l is apperantly older than 7.16.12.");
    ...
                $curl->setopt(CURLOPT_TIMEOUT, $self->timeout) if $self->t
    +imeout;
                $curl->setopt(CURLOPT_CONNECTTIMEOUT, $self->connection_ti
    +meout) if $self->connection_timeout;
            }
    
  2. or download this
    t/01basic.t
    
    20:ok(! $curl->setopt(CURLOPT_TIMEOUT, 30), "Setting CURLOPT_TIMEOUT")
    +;