curl-users
post textarea field with the content from a text file
Date: Wed, 20 Sep 2006 19:42:49 -0400
hi
I am trying to use wiki engine as a simple cvs system. The particular
wiki I am testing
is UseModWiki, the example posting page can be found at
http://wenq.org/eindex.cgi?action=edit&id=test
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
I found "text=@filename" statement does not work for this situation, it
failed to paste the
content of the file as the field, instead, it used the filename as the
content.
I am wondering if there is a solution for this application?
thank you
Qianqian
Received on 2006-09-21