HappyDoc Generated Documentation .\SurfaceAreaVolume\multipart.py

. / SurfaceAreaVolume / multipart.py 

Functions   
  post_multipart 
post_multipart (
        host,
        selector,
        fields,
        )

Post fields and files to an http host as multipart/form-data. fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return the server's response page.

  get_content_type 
get_content_type ( filename )
  encode_multipart_formdata 
encode_multipart_formdata ( fields )

fields is a sequence of (name, filename, value) elements for data to be uploaded as files. If filename is None, the field is not given a filename. Return (content_type, body) ready for httplib.HTTP instance

Classes   

This document was automatically generated Thu Nov 09 13:33:38 2006 by HappyDoc version 3.0.a1