# Help me About Content-Type header parse

**URL:** <https://www.ruby-forum.com/t/help-me-about-content-type-header-parse/226506>\
**Category:** NGINX\
**Created:** [December 11, 2012, 10:37am UTC](https://www.ruby-forum.com/t/help-me-about-content-type-header-parse/226506 "2012-12-11T10:37:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goosman.lei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e79b87/32.png) [@goosman.lei](https://www.ruby-forum.com/u/goosman.lei)\
**Post date:** [December 11, 2012, 10:37am UTC](https://www.ruby-forum.com/t/help-me-about-content-type-header-parse/226506/1 "2012-12-11T10:37:05Z")

</div>

When I used multipart/form-data, I find that:

1. Content-Type: multipart/form-data;  
boundary=----------------------------4db878605894\r\n
2. Content-Type: multipart/form-data;  
boundary=----------------------------4db878605894; charset=utf-8\r\n
3. Content-Type: multipart/form-data; charset=utf-8;  
boundary=----------------------------4db878605894\r\n

in above three example, when I submit 1 and 3, It’s work fine, but 2  
don’t  
work

Is there a bug? or who can tell me why?

demonstrate code: [\<?php$header = \<\<\<heredocPOST /index.php HTTP/1.1\r\nUser-Agent: curl/7.21.4 - Pastebin.com](http://pastebin.com/59aAhkFY)

Posted at Nginx Forum:

> **[Help me!!! About Content-Type header parse](https://forum.nginx.org/read.php?2,233848,233848#msg-233848)**
>
> When I used multipart/form-data, I find that: 1. Content-Type: multipart/form-data; boundary=----------------------------4db878605894\\r\\n 2. Content-Type: multipart/form-data; boundary=----------------------------4db878605894; charset=utf-8\\r\\n 3....

---

<div class="post-metadata">

**Author:** ![goosman.lei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e79b87/32.png) [@goosman.lei](https://www.ruby-forum.com/u/goosman.lei)\
**Post date:** [December 12, 2012, 8:49am UTC](https://www.ruby-forum.com/t/help-me-about-content-type-header-parse/226506/2 "2012-12-12T08:49:48Z")

</div>

anyone can help me? please

Posted at Nginx Forum:

> **[Re: Help me!!! About Content-Type header parse](https://forum.nginx.org/read.php?2,233848,233907#msg-233907)**
>
> When I used multipart/form-data, I find that: 1. Content-Type: multipart/form-data; boundary=----------------------------4db878605894\\r\\n 2. Content-Type: multipart/form-data; boundary=----------------------------4db878605894; charset=utf-8\\r\\n 3....
