2 # -*- coding: iso-8859-1 -*-
8 pf = [('field1', 'this is a test using httppost & stuff'),
9 ('field2', (pycurl.FORM_FILE, 'test_post.py', pycurl.FORM_FILE, 'test_post2.py')),
10 ('field3', (pycurl.FORM_CONTENTS, 'this is wei\000rd, but null-bytes are okay'))
14 c.setopt(c.URL, 'http://www.contactor.se/~dast/postit.cgi')
15 c.setopt(c.HTTPPOST, pf)
16 c.setopt(c.VERBOSE, 1)