tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30813] New: - HTTP POST does not translate URI but GET does
Date Tue, 24 Aug 2004 01:03:07 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: rickkw@yahoo.com


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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message