The com.sun.net.httpserver.HttpServer listener does not accept Content-Length header with value 2147483648 (2^31) or larger. Manually telnetting to a listening server and entering this Content-Length header results in:
<h1>400 Bad Request</h1>NumberFormatException thrownConnection to localhost closed by foreign host.
And control is never passed to my HttpHandler code.
<h1>400 Bad Request</h1>NumberFormatException thrownConnection to localhost closed by foreign host.
And control is never passed to my HttpHandler code.
- duplicates
-
JDK-6756771 com.sun.net.httpserver.HttpServer should handle POSTs larger than 2Gig
-
- Closed
-
- relates to
-
JDK-6405050 change http server content-length from int to long
-
- Resolved
-
-
JDK-5052093 URLConnection doesn't support large files
-
- Closed
-