Access MIME Parts from HTTP Request?
Question:
Is it possible to “grab“ mime parts directly from incoming HTTP request with Chilkat.Mime object? LoadMimeFile() works like a charm.
Answer:
Yes, if you are using a ChilkatDotNet2.dll that is more than a few weeks old (from the date of this post), download the latest from http://www.chilkatsoft.com/preRelease/ChilkatDotNet2.zip
The latest build has a new feature built into the LoadMime and LoadMimeBinary methods that allow you to pass a “headless” MIME string. What I mean by “headless” is a MIME document that is missing the initial header, which is typically what you have in the raw HTTP request. The LoadMime and LoadMimeBinary methods will recognize that the header is missing and they will automatically parse the boundary string and re-create a basic multipart/mixed header so that the individual parts may be accessed.