cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: remove headers received from server

From: Antel <voldor_at_gmail.com>
Date: Sat, 11 Aug 2007 17:30:25 +0000

>On 8/11/07, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Sat, 11 Aug 2007, Antel wrote:
>
> > When I download a page it send(up to html) the headers of server like this:
> > perl perl_interface.pl www.google.com
> > HTTP/1.0 200 OK
> > Cache-Control: private
> > Content-Type: text/html; charset=ISO-8859-1
> > Set-Cookie: .
> > Server: GWS/2.1
> > Date: .
> > Connection: close
> >
> > How I remove it? I try with verbose 0 and didnt find nothing on web or
> > mailinglist, its cause of my sockets?
>
> If you tell us about what you do it is easier for us to help you... But if you
> used the code you showed before, you should probably read the documentation
> for the options you're using. Like CURLOPT_HEADER for example.
>

Removing the line or changing to 0 value works like a charm, I mistake
the option because I work much with php binding that have
CURLOPT_HTTPHEADER and when I read CURLOPT_HEADER I think that it was
for enable sending of headers, nothing 'estetic', thank you
Received on 2007-08-11