Help for this page

Select Code to Download


  1. or download this
        my ($headers, $body) = ('','');
        
    ...
        $CURLcode .= WWW::Curl::easy::setopt($curl, CURLOPT_POSTFIELDS, $p
    +ost_vars);
        $CURLcode .= WWW::Curl::easy::perform($curl);
        WWW::Curl::easy::cleanup($curl);
    
  2. or download this
    sub callback {
        my ($data,$pointer)=@_;
        $params{'data'} .= $data;
        return length($data);
    }
    
  3. or download this
    HTTP/1.1 200 OK
    Date: Mon, 14 Mar 2005 01:42:55 GMT
    ...
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=ISO-8859-1