Menu

#624 mime: Provide getheaders and getbody (enhancement)

open
mime (58)
5
2006-11-07
2005-06-02
No

I've been trying to use the mime package for HTTP form
data (see <http://wiki.tcl.tk/FileUploadWithTclSHttp>).

The http package wants additional HTTP headers as a list,
and the content-type separately.

The mime package doesn't have a getheaders method returning
a list of headers and getbody doesn't work for multipart.
I think buildmessage should be split into those two functions.
It's easy enough to get the content-type from the headers
ourself once we have them.

Discussion

  • Pat Thoyts

    Pat Thoyts - 2006-11-06

    Logged In: YES
    user_id=202636

    mime::getheader $token returns a list of header value pairs.
    getbody doesn't make sense for a multipart message.

     
  • Pat Thoyts

    Pat Thoyts - 2006-11-06
    • status: open --> closed
     
  • Benjamin Riefenstahl

    • assigned_to: mrose --> patthoyts
    • status: closed --> open
     
  • Benjamin Riefenstahl

    Logged In: YES
    user_id=143885

    > getbody doesn't make sense for a multipart message.

    ?? Then how do I combine the mime and http packages
    to implement HTTP form data? The http package wants
    the body separately. At least that was the case when
    I filed this RFE, I admit that haven't looked at the
    issue since.