curl-library
specify form name in POST
From: Tiberiu Motoc <tiberiu.motoc_at_gmail.com>
Date: Mon, 25 Feb 2008 01:38:18 -0800
Date: Mon, 25 Feb 2008 01:38:18 -0800
Hi,
I was wondering if it is possible to specify the form name in a POST
request. I know you can do that using the command line:
curl -F "my_form[uploaded_data]=@index.xml"
http://localhost:3000/indexes.xml
, so you should be able to do it from the code.
(the index page has a form with name="my_form")
When I look at the multipart POST examples I just can't see where I could
set this. curl_formadd() doesn't give you the option, so is it something you
can specify with curl_easy_setopt, or is it something you can set in the
headers(?!) ?
Thanks,
Tiberiu
Received on 2008-02-25