Is there a manual that describes how to get to headers, or are you sugggesting I hack the Curl source?

Wait, why did you pick curl?

This module provides a Perl interface to libcurl. It is not intended to be a standalone module and because of this, the main libcurl documentation should be consulted for API details at http://curl.haxx.se. The documentation you're reading right now only contains the Perl specific details, some sample code and the differences between the C API and the Perl one.

http://cpansearch.perl.org/src/ANDREMAR/WWW-Curl-Simple-0.100181/lib/WWW/Curl/Simple/Request.pm

my ($body_ref, $head_ref); $self->body(\$body_ref); $self->head(\$head_ref); open (my $fileb, ">", \$body_ref); $curl->setopt(CURLOPT_WRITEDATA,$fileb); my $h = $self->head; open (my $fileh, ">", \$head_ref); $curl->setopt(CURLOPT_WRITEHEADER,$fileh); return $curl; sub response { my ($self) = @_; my $res = HTTP::Response->parse(${$self->head} . "\r" . ${$self->b +ody}); $res->request($self->request); $res->content(${$self->body}); return $res; }
http://search.cpan.org/grep?cpanid=SZBALINT&release=WWW-Curl-4.14&string=CURLOPT_WRITEHEADER&i=1&n=1&C=12

In reply to Re^5: LWP::Curl and character encoding by Anonymous Monk
in thread LWP::Curl and character encoding by perl-diddler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.