cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: post textarea field with the content from a text file

From: Qianqian Fang <fangq_at_nmr.mgh.harvard.edu>
Date: Wed, 20 Sep 2006 22:08:28 -0400

hi Dan

I changed the command option from "-F text=@Redbird.f90" to
"-d text=@Redbird.f90", and got this error message:

You can only select one HTTP request!

does that mean I should put all request parameters into the content of
the file?

Qianqian

Dan Fandrich wrote:
> On Wed, Sep 20, 2006 at 07:42:49PM -0400, Qianqian Fang wrote:
>
>> there is a textarea, and a few hidden fields. what I want is to post a
>> text file on my disk
>> as the content of the testarea (field=text).
>>
>> curl -F text=@Redbird.f90 -F oldtime=1158794874 -F title=Redbird_source
>> -F summary=Initial -F Save=Save http://wenq.org/eindex.cgi
>>
>
> You want to use -d instead of -F here. -F causes a different style of form
> which the Wiki likely doesn't expect.
>
>
>>>> Dan
>>>>
Received on 2006-09-21