cURL / Mailing Lists / curl-library / Single Mail


Re: LibCurl autmoatically sends HEAD request after POST

From: Daniel Stenberg <>
Date: Tue, 4 Feb 2014 08:00:22 +0100 (CET)

On Tue, 4 Feb 2014, Rahul R wrote:

> I send a POST request and i do get HTTP 202 Accepted in return to notify
> that the server has accepted the request for an asynchronous operation.
> After this, libCurl automatically sends HEAD to the same URL. I couldn't
> understand why this happens, as this is not (HTTP 202) redirect
> response(3XX).
> How to supress HEAD request in this case ?

Uh, libcurl is certainly not made nor intended to do that. Give us more info

- libcurl version on which platform

- a detailed description of how you use libcurl, ideally a smallish source
   that can repeat the problem

List admin:
Received on 2014-02-04