Does vmime support http post with multipart?

32 views
Skip to first unread message

sany...@gmail.com

unread,
Mar 5, 2014, 12:05:55 PM3/5/14
to vm...@googlegroups.com
I can see this is great library for email. Does it has the http post with mime?

Vincent Richard

unread,
Mar 5, 2014, 4:59:03 PM3/5/14
to vm...@googlegroups.com
Hi!

Yes, VMime should be able to parse HTTP multipart messages, exactly like it does for MIME messages.

vmime::message msg;
msg
.parse("...the HTTP multipart message data...");

Vincent

sany...@gmail.com

unread,
Mar 5, 2014, 6:16:48 PM3/5/14
to vm...@googlegroups.com
thank you for the reply. Actually I am very newbie with vmime. I can see there is example how to use vmime to post an email using email protocol. But I couldn't find any example how to construct a simple http post message using http protocol probably because the library is more toward emailing. But I can see it has the vmime::utility::url but it requires vmime::net::transport to use it which it only has the SMTPTransport and sendmailTransport classes that can be instanced. They are email protocols.

Any place I look for some basic tutorial on http post with multipart using vmime?

Vincent Richard

unread,
Mar 6, 2014, 3:20:54 AM3/6/14
to vm...@googlegroups.com
Actually, VMime will allow you to build HTTP multipart messages, but VMime is *not* a HTTP client library: it does not have any facility to send such messages to a HTTP server. You will have to use another library (ie. ASIO) to do it.

Vincent

sany...@gmail.com

unread,
Mar 7, 2014, 7:32:42 AM3/7/14
to vm...@googlegroups.com
noted. thank you.
Reply all
Reply to author
Forward
0 new messages