Hi everyone,

Does anyone know how to use pycurl to post a web form? I use this:

c=pycurl.Curl()
c.setopt(c.URL, url)
fields = [('name', 'tomas')]
c.setopt(c.HTTPPOST, fields)
c.setopt(c.USERPWD, 'user:password')
c.perform()

But this gives a HTTP 200 instead of HTTP 201 code back. It has not submitted the form.

Thanks very much!

Tomas