Skip to main content

A handler for urllib2 to enable multipart form uploading

Project description

Usage:
A handler for urllib2 to enable multipart/form-data for posting forms and uploading data.

Inspirations:
Upload files in python:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146306

Example:
import MultipartPostHandler, urllib2

opener = urllib2.build_opener(MultipartPostHandler.MultipartPostHandler)
params = { "username" : "bob", "password" : "riviera",
"file" : open("filename", "rb") }
opener.open("http://wwww.bobsite.com/upload/", params)

Further Example:
The main function of this file is a sample which downloads a page and
then uploads it to the W3C validator.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for MultipartPostHandler2, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size MultipartPostHandler2-0.1.5-1.noarch.rpm (8.3 kB) File type RPM Python version any Upload date Hashes View
Filename, size MultipartPostHandler2-0.1.5-1.src.rpm (7.3 kB) File type RPM Python version any Upload date Hashes View
Filename, size MultipartPostHandler2-0.1.5-py2.7.egg (5.8 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size MultipartPostHandler2-0.1.5.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page