DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30813

HTTP POST does not translate URI but GET does

           Summary: HTTP POST does not translate URI but GET does
           Product: Tomcat 5
           Version: 5.0.26
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Connector:HTTP
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,

I configured the Tomcat HTTP connector with URIEncoding="UTF-8".  I have done
various experiments and finally narrowed down the problem that the connector
does not properly decode request parameters received from HTTP POST, while it
works correctly with HTTP GET.

I have the following simple JSP page to illustrate this problem.


<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<title>Testing UTF-8</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>

Type in UNICODE characters in input field and click the Submit button.

<h1>Testing UTF-8 using GET</h1>
<form action="<%=request.getRequestURI()%>" method="GET">
<input type="text" name="data" value='<%=request.getParameter("data")%>'/>
<input type="submit" name="submit" value="submit"/>
</form>

<h1>Testing UTF-8 using POST</h1>
<form action="<%=request.getRequestURI()%>" method="POST">
<input type="text" name="data" value='<%=request.getParameter("data")%>'/>
<input type="submit" name="submit" value="submit"/>
</form>

</body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to