curl-library
Re: Java libcurl question
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 2 Mar 2007 23:06:43 +0100 (CET)
Date: Fri, 2 Mar 2007 23:06:43 +0100 (CET)
On Fri, 2 Mar 2007, Kilian Perdomo Curbelo wrote:
> Could anybody post an example on how to save the https headers into a file
> or a variable?
I don't think you'll find very many java libcurl binding users here though. In
fact I'm quite surprised anyone uses it since I was under the impression it is
old and stale.
> As I said this outputs the info on the screen. On the documentation they say
> using OPT_WRITEINFO and a string as parameters on setopt, this would put the
> headers into the string, but it doesn't work for me. Thanks.
This is how we do it in plain libcurl:
http://curl.haxx.se/lxr/source/docs/examples/getinmemory.c
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-03-02