[twill] posting without a form?

Titus Brown titus at caltech.edu
Sun Dec 2 22:04:41 PST 2007


On Sun, Dec 02, 2007 at 04:03:46PM -0800, iain duncan wrote:
-> Hey guys, wondering if I can do an arbitrary post from twill using all
-> the handy shortcuts if the form I want to pretend to be does *not*
-> exist.
-> 
-> Ie, from a python method I want to post a set of key/vals to an
-> arbitrary url, but use twill commands. I didn't see this in the
-> examples.
-> 
-> Thanks!
-> Iain

hi Iain,

I don't know exactly how to do this with twill (or, more importantly,
with mechanize -- getting twill to do it would be easy, given mechanize
functionality). It shouldn't be too hard, however.

Note that this is of great value for testing AJAX code, too.

cheers,
--titus



More information about the twill mailing list