skip to navigation
skip to content

Not Logged In

MultipartPostHandler2 0.1.1

A handler for urllib2 to enable multipart form uploading

This is MultipartPostHandler plus a fix for utf-8 systems.

  Enables the use of multipart/form-data for posting forms

  Upload files in python:

    Fabien Seisen: <>

  import MultipartPostHandler, urllib2, cookielib

  cookies = cookielib.CookieJar()
  opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookies),
  params = { "username" : "bob", "password" : "riviera",
             "file" : open("filename", "rb") }"", params)

Further Example:
  The main function of this file is a sample which downloads a page and
  then uploads it to the W3C validator.
File Type Py Version Uploaded on Size
MultipartPostHandler2-0.1.1-py2.7.egg (md5) Python Egg 2.7 2012-03-12 6KB
MultipartPostHandler2-0.1.1.tar.gz (md5) Source 2012-03-12 3KB
  • Downloads (All Versions):
  • 2 downloads in the last day
  • 53 downloads in the last week
  • 290 downloads in the last month