cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_POSTFIELDS data, causes all following calls to attempt a post even when it should be a get

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 30 Apr 2002 09:34:35 +0200 (MET DST)

On Mon, 29 Apr 2002, Gandt, Eric wrote:

> The following is the output of my code, it consists of 2 command one
> submits a form the other reads any image, the first works fine, however
> when the second call is made using the same handle the form data from the
> first is still sent through, as a result the second fails, if I destroy the
> handle and recreate it then everything is fine, however I would prefer not
> to have to do so. Is there any method which would allow me reset the data
> that was set by CURLOPT_POSTFIELDS, so that the handle would not need to be
> reconstructed, but would have the same effect.

You're looking for CURLOPT_HTTPGET. It sets back the HTTP request to a GET.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-04-30