Bug 53698 - POST data lost when appending charset to header Content-Type application/x-www-form-urlencoded
Summary: POST data lost when appending charset to header Content-Type application/x-ww...
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.2
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Keywords: FixedInTrunk
Depends on:
Reported: 2012-08-12 07:17 UTC by Petter Berntsen
Modified: 2012-08-21 15:49 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Petter Berntsen 2012-08-12 07:17:04 UTC
Posting data when Content-Type is "application/x-www-form-urlencoded" works.

But when appending charset, fx. "application/x-www-form-urlencoded; charset=UTF-8", the body disappears.

Humbedooh has tracked this down to ap_parse_form_data() in server/util.c
Comment 1 Daniel Gruno 2012-08-12 07:54:01 UTC
We did some rather strict checking of the content type. I've applied some changes to trunk to make this check more lenient and accept an appended charset.

Happy programming :)
Comment 2 Rainer Jung 2012-08-21 15:49:44 UTC
Fixed in 2.4.3.