cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_POSTFIELDS with HTTP GET instead of HTTP POST

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 28 Jul 2002 20:33:04 +0200 (MET DST)

On Mon, 1 Jul 2002, Matthew Marcella wrote:

> 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?

libcurl defaults to GET, just set the URL and go.

-- 
  Daniel Stenberg -- curl groks URLs
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-07-28