Tk Library Source Code

View Ticket
Login
Ticket UUID: 944995
Title: xml content/type
Type: Bug Version: None
Submitter: coldstore Created on: 2004-04-30 01:33:02
Subsystem: ncgi Assigned To: welch
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-08-09 12:40:59
Resolution: Fixed Closed By: welch
    Closed on: 2004-05-04 22:31:14
Description:
Reported as tclhttpd bug '[ 698549 ] direct url getting
xml content/type' at
http://sourceforge.net/tracker/index.php?func=detail&aid=698549&group_id=12884&atid=112884

 when using in ie ActiveXObject("Microsoft.XMLHTTP");
to get xml from a direct_url the is a server 500 error.
the problem is the content-type:
Unknown Content-Type: text/xml
while executing
"ncgi::nvlist"(procedure "ncgi::parse" line 8)


this is because ncgi package does not reconize test/xml
type.
adding it to ncgi solves the problem:

proc ncgi::nvlist {} {
set query [ncgi::query]
set type [ncgi::type]
switch -glob -- $type {
"" -
application/x-www-form-urlencoded -
application/x-www-urlencoded -
text/xml
{

I'm handpassing this to you.
User Comments: yahalom added on 2006-08-09 12:40:59:
Logged In: YES 
user_id=130120

the bug should be opened as currently microsoft changed the 
content type. the text/xml comes with additional data so 
the switch misses it. the fix should do
text/xml*

welch added on 2004-05-05 05:31:14:
Logged In: YES 
user_id=89720

I added text/xml support to the ncgi module as suggested.