Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2011-09-16
15:35 • Closed ticket [3391977fff]: cant pass a charset=utf-8 with the type text/xml... artifact: 40d6977c95 user: dkf
2011-08-31
19:43 • Ticket [3391977fff]: 4 changes artifact: f54e3ab56d user: mzi
19:26 • Ticket [3391977fff]: 4 changes artifact: 5ae1dd5bc4 user: dkf
19:25 • Ticket [3391977fff]: 4 changes artifact: c40808dd0c user: dkf
19:25 • Add attachment 3391977.patch to ticket [3391977fff] artifact: 2cd67354d9 user: dkf
2011-08-29
16:07 • Ticket [3391977fff] cant pass a charset=utf-8 with the type text/xml status ... artifact: 2662771ea7 user: mzi
16:06 • Ticket [3391977fff]: 4 changes artifact: beaa7ce69f user: mzi
16:06 • Add attachment http-2.7.5.tm to ticket [3391977fff] artifact: dcb0b7591f user: mzi
2011-08-15
21:26 • Ticket [3391977fff] cant pass a charset=utf-8 with the type text/xml status ... artifact: f74e21453c user: mzi
21:26 • Add attachment testenc.tcl to ticket [3391977fff] artifact: 5b4e6f0eec user: mzi
14:26 • New ticket [3391977fff] cant pass a charset=utf-8 with the type text/xml. artifact: 2fee175bf3 user: mzi

cant pass a charset=utf-8 with the type text/xml

Closed / Fixed3391977fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-08-15 14:26:33
On the function http:geturl I cant pass the charset=utf-8 with the type "text/xml" without having the Content-Type twice in the http.
with the parameter:
-headers [list "Content-Type" "text/xml; charset=utf-8"] and -type "text/xml"

it makes:
Content-Type: text/xml; charset=utf-8
Content-Type: text/xml

with the parameter:
-headers [list "Content-Type" "text/xml; charset=utf-8"]]

it makes:
Content-Type: text/xml; charset=utf-8
Content-Type: application/x-www-form-urlencoded

I think if in the -headers a Content-Type is defined then the -type does not write a Content-Type or a parameter of charset must produce a Content-Type with charset.
mziplain2011-08-15 21:26:35
File Added - 421175: testenc.tcl
mziplain2011-08-29 16:06:58
File Added - 422288: http-2.7.5.tm
mziplain2011-08-29 16:07:46
I have now attached a bugfixed version of the http file.
dkfplain2011-08-31 19:25:40
File Added - 422439: 3391977.patch
dkfplain2011-08-31 19:26:34
Does the patch I attached represent the change that you want done? (Didn't produce any test cases yet.)
mziplain2011-08-31 19:43:03
Yes this patch does that what I want.
Thank you. Donal
dkfplain2011-09-16 15:35:34
allow_comments - 1
Log in (anonymous is fine) to add a comment.

Attachments: