file uploading via urllib2 (multipart/form-data)

Discussion in 'Python' started by Clark C. Evans, Jan 14, 2005.

  1. Hello. I was wondering if anyone has built a module that works with
    urllib2 to upload file content via POST multipart/form-data. I'm
    aware of ASPN 146306, however, I need to use urllib2 beacuse I'm
    using HTTP Digest over SSL.

    Cheers,

    Clark
     
    Clark C. Evans, Jan 14, 2005
    #1
    1. Advertising

  2. Clark C. Evans

    Fuzzyman Guest

    Clark C. Evans wrote:
    > Hello. I was wondering if anyone has built a module that works with
    > urllib2 to upload file content via POST multipart/form-data. I'm
    > aware of ASPN 146306, however, I need to use urllib2 beacuse I'm
    > using HTTP Digest over SSL.
    >
    > Cheers,
    >
    > Clark


    There is an example showing exactly that over at voidspace. I think
    it's on the cgi page, as it is a companion to the cgi demo showing how
    to receive file uploads.

    Try : http://www.voidspace.org.uk/python/cgi.shtml
    Regards,

    Fuzzy
    http://www.voidspac.org.uk/python/index.shtml
     
    Fuzzyman, Jan 14, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    8
    Views:
    143,308
    zeeshanakhter2009
    May 26, 2012
  2. Matt
    Replies:
    1
    Views:
    11,226
    David Dorward
    Oct 12, 2004
  3. Austin Ziegler
    Replies:
    4
    Views:
    161
    Patrick May
    Sep 26, 2004
  4. Dema
    Replies:
    3
    Views:
    340
  5. Kevin DeValck
    Replies:
    1
    Views:
    755
    7stud --
    May 17, 2011
Loading...

Share This Page