[web2py] Re: Using curl to upload files

2010-02-11 Thread raven
I tried simplifying the situation, by forgetting about the file upload for now, and just posting a text string db.define_table( 'names', Field('name', 'string' )) def upload2(): form=FORM(TABLE(TR(Your name:,INPUT(_type=text,_name=name,requires=IS_NOT_EMPTY())),

Re: [web2py] Re: Using curl to upload files

2010-02-11 Thread Thadeus Burgess
For one, the formkey is generated in the session. So you can only submit the form once after it is generated with your session, since curl is not tied to your browser session formkey will not work. You need to not pass session to form.accepts and then it will work. form.accepts(request.vars)

[web2py] Re: Using curl to upload files

2010-02-11 Thread raven
That did it! Thank you very much. On Feb 11, 5:46 pm, Thadeus Burgess thade...@thadeusb.com wrote: For one, the formkey is generated in the session. So you can only submit the form once after it is generated with your session, since curl is not tied to your browser session formkey will not