cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: when redirect POST is changed to GET even with curl_easy_setopt(m_curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 14 Apr 2009 12:26:28 +0200 (CEST)

On Tue, 14 Apr 2009, David Ding wrote:

> We have a application using libcurl to POST message. Whenever there is
> redirect, POST is changed to GET even with: curl_easy_setopt(m_curl,
> CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL).
>
> Any idea what might be wrong?

Why is this a "wrong" at all? It depends on the HTTP response code (and your
libcurl version of course).

-- 
  / daniel.haxx.se
Received on 2009-04-14