curl-library
Re: CURLOPT_POSTFIELDS with HTTP GET instead of HTTP POST
From: Andrés García <fandom_at_retemail.es>
Date: Tue, 2 Jul 2002 02:11:02 +0200
Date: Tue, 2 Jul 2002 02:11:02 +0200
> I would like to send an HTTP GET request with form data.
> Example
>
> http://someserver/cgi-bin/test?fieldname=value
> I am using curl_easy_setopt(curl_handle, CURLOPT_POSTFIELDS, postfields)
> but it makes an HTTP POST request. How do I force a HTTP GET?
You simply use the whole url together with the parameters:
curl_easy_setopt(curl_handle,CURLOPT_URL,http://someserver/cgi-bin/test?fieldname=value);
Andres
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-07-02