Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3670978
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:25:51+00:00 2026-05-19T02:25:51+00:00

When you are writing MIME, you separate different chunks of your message with a

  • 0

When you are writing MIME, you separate different chunks of your message with a certain boundary. I failed for some reason to find any documentation explaining this boundary, but here’s what I gathered from examples:

  1. Boundary can be any string of letters and numbers, i. e. “d29a0c638b540b23e9a29a3a9aebc900aeeb6a82”.

  2. There are no rules for generating the boundary, you can just md5sum the name of your beloved, and here you go, you’ve got your boundary.

  3. If you are sending MIME over HTTP, you must add a header “Content-Type” specifying that you do, and your boundary, contents of a header may look like this:

    multipart/form-data; boundary=d29a0c638b540b23e9a29a3a9aebc900aeeb6a82

  4. In the body of your message, the boundary should be preceded with “–“, like:

    –d29a0c638b540b23e9a29a3a9aebc900aeeb6a82

But following these rules (and this helpful answer) I failed to generate POST query that server would accept. Am I missing something? Did I get something wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:25:51+00:00Added an answer on May 19, 2026 at 2:25 am

    The syntax of a boundary is:

     boundary := 0*69<bchars> bcharsnospace
     bchars := bcharsnospace / " "
     bcharsnospace := DIGIT / ALPHA / "'" / "(" / ")" /
                      "+" / "_" / "," / "-" / "." /
                      "/" / ":" / "=" / "?"
    

    And the body of a multipart entity has the syntax (only the important parts):

     multipart-body := [preamble CRLF]
                       dash-boundary transport-padding CRLF
                       body-part *encapsulation
                       close-delimiter transport-padding
                       [CRLF epilogue]
     dash-boundary := "--" boundary
     encapsulation := delimiter transport-padding
                      CRLF body-part
     delimiter := CRLF dash-boundary
     close-delimiter := delimiter "--"
    

    The preceeding -- is mandatory for every boundary used in the message and the trailing -- is mandatory for the closing boundary (close-delimiter). So a multipart body with three body-parts with boundary as boundary can look like this:

    --boundary
    1. body-part
    --boundary
    2. body-part
    --boundary
    3. body-part
    --boundary--
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Writing documentation in html requires some code examples. What to do with characters that
I am writing a mime-formatted email message file containing html. I am writing the
Writing a .NET DLL how do I find Application.ProductName ? EDIT: Obviously, importing Windows.Forms
I am writing a small script to upload and detect MIME type, using Zend
I'm writing a program in C, and I need to known the mime-type of
I'm writing an app that pulls chunks of svg together and serves them as
Writing some signal processing in CUDA I recently made huge progress in optimizing it.
I am having problem with writing PDF files to browser. Other mime types work
I'm in the process of writing a python script, and I want to find
I'm writing some code to parse forwarded emails. What I'm not sure is if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.