Re: multipart/form-data in an HTTP client

Discussion in 'Python' started by Ames Andreas (MPA/DF), Sep 2, 2004.

  1. Hello,

    Jeff Shannon wrote:

    > I, too, was surprised that the existing Python libraries don't
    > directly support multipart/form-data already, and I hope that this
    > gets added in soon.


    I'm not sure what you'd call 'support' and I'm certainly no http guru,
    so my hint my be far away from what you want (sorry if so), but the
    function 'parse_multipart' and the class 'FieldStorage' in cgi.py
    (v2.3) both handle multipart/formdata typed requests.


    cheers,

    andreas
     
    Ames Andreas (MPA/DF), Sep 2, 2004
    #1
    1. Advertisements

  2. Ames Andreas (MPA/DF)

    Jeff Shannon Guest

    Ames Andreas (MPA/DF) wrote:

    >Hello,
    >
    >Jeff Shannon wrote:
    >
    >
    >
    >>I, too, was surprised that the existing Python libraries don't
    >>directly support multipart/form-data already, and I hope that this
    >>gets added in soon.
    >>
    >>

    >
    >I'm not sure what you'd call 'support' and I'm certainly no http guru,
    >so my hint my be far away from what you want (sorry if so), but the
    >function 'parse_multipart' and the class 'FieldStorage' in cgi.py
    >(v2.3) both handle multipart/formdata typed requests.
    >
    >


    Right, but those handle it from the server side, not the client side.
    (I failed to specify that I was speaking of client-side support, via
    urllib2 or equivalent, having assumed that that would be apparent from
    the post I was replying to.)

    Jeff Shannon
    Technician/Programmer
    Credit International
     
    Jeff Shannon, Sep 2, 2004
    #2
    1. Advertisements

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. Li Zhang
    Replies:
    4
    Views:
    6,403
    softip
    Feb 27, 2009
  2. Axel Heck
    Replies:
    1
    Views:
    2,741
    Thomas Matthews
    Oct 20, 2003
  3. Jeff Shannon
    Replies:
    4
    Views:
    1,216
    Wade Leftwich
    Jul 21, 2004
  4. Nelson Minar

    multipart/form-data in an HTTP client

    Nelson Minar, Sep 1, 2004, in forum: Python
    Replies:
    5
    Views:
    6,144
    Jeff Shannon
    Sep 2, 2004
  5. Bruno Dilly
    Replies:
    0
    Views:
    571
    Bruno Dilly
    Aug 18, 2006
  6. Dema
    Replies:
    3
    Views:
    482
  7. leoboiko
    Replies:
    0
    Views:
    520
    leoboiko
    Aug 6, 2008
  8. Kevin DeValck
    Replies:
    1
    Views:
    1,063
    7stud --
    May 17, 2011
Loading...