curl-library
Re: A sample to login and maintain session
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 18 Jun 2009 20:05:00 +0200 (CEST)
Date: Thu, 18 Jun 2009 20:05:00 +0200 (CEST)
On Thu, 18 Jun 2009, Aditya Kumar Gupta wrote:
Please don't top-post.
> One more query. While I try to override the HTTP header using headers =
> curl_slist_append(headers, "Accept: application/json"); I get Accept: */*
> too besides the one I set. The saw this while used the library in verbose
> mode.
>
> I want to override the existing variable and not append to that.
That sounds like you're using an older libcurl version and should upgrade.
-- / daniel.haxx.seReceived on 2009-06-18