Tk Library Source Code

View Ticket
Login
Ticket UUID: 547274
Title: ncgi:nvlist bug
Type: Bug Version: None
Submitter: nobody Created on: 2002-04-22 20:57:04
Subsystem: ncgi Assigned To: gwlester
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-07-03 03:25:07
Resolution: Fixed Closed By: mic42
    Closed on: 2006-07-02 20:25:07
Description:
When I have POST header as of 
application/x-url-form-encoded;encoding=ISO-8859-1
I got the following error message:


Unknown Content-Type: application/x-www-form-
urlencoded; charset=ISO-8859-1
    while executing
"ncgi::nvlist"
    (procedure "ncgi::input" line 11)
    invoked from within
"ncgi::input"
    (file "/var/www/billing/callback.tcl" line 6)

I realized that probably 
string 296 of cgi.tcl
should be

application/x-www-form-urlencoded*
instead of just
application/x-www-form-urlencoded
User Comments: nobody added on 2005-02-04 19:13:09:
Logged In: NO 

As of RFC-2616 sec. 14.17 Content-Type header have format:

  Content-Type = "Content-Type" ":" media-type

Where media-type is (sec. 3.7):

  media-type   = type "/" subtype *( ";" parameter )
  type         = token
  subtype      = token

ncgi.tcl attempts to recognize just ``type/subtype'' part, not the
optional parameters.  It's an error.