https://bz.apache.org/bugzilla/show_bug.cgi?id=57629
Bug ID: 57629 Summary: sending large file with Expect: 100-continue wrong messages order Product: Tomcat 8 Version: 8.0.18 Hardware: PC OS: Linux Status: NEW Severity: major Priority: P2 Component: Connectors Assignee: dev@tomcat.apache.org Reporter: lorenzo.caena...@emaze.net With reference ( https://bz.apache.org/bugzilla/show_bug.cgi?id=56725#c7 ) I want to POST/PUT a large amount of data (60MB+) but, following the tips on BUG #56725, I've configured my client to send an Expect: 100-continue. I think my server needs to authenticate the client BEFORE sending the "100 Continue" response. This is what i get: -> PUT /put/URL HTTP/1.1 -> Content-Type: application/json;charset=UTF-8 -> Content-Length: 69748665 -> Host: localhost:8084 -> Connection: Keep-Alive -> User-Agent: Apache-HttpClient/4.3.6 (java 1.5) -> Expect: 100-continue -> Accept-Encoding: gzip,deflate <- HTTP/1.1 100 Continue <- HTTP/1.1 401 Unauthorized <- Server: Apache-Coyote/1.1 <- Set-Cookie: JSESSIONID=00655E5BBBAB2F993D735F5A5B392FB5; Path=/put/; HttpOnly <- WWW-Authenticate: Basic realm="Spring Security Application" <- Content-Type: text/html;charset=utf-8 <- Content-Language: en <- Content-Length: 1104 <- Date: Tue, 24 Feb 2015 10:00:08 GMT <- Connection: close <- <!DOCTYPE html><html><head><title>Apache Tomcat/8.0.18 - Error report</title><style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style> </head><body><h1>HTTP Status 401 - Full authentication is required to access this resource</h1><div class="line"></div><p><b>type</b> Status report</p><p><b>message</b> <u>Full authentication is required to access this resource</u></p><p><b>description</b> <u>This request requires HTTP authentication.</u></p><hr class="line"><h3>Apache Tomcat/8.0.18</h3></body></html> -> DATA (truncated by connection reset) And this is what I expect: -> PUT /put/URL HTTP/1.1 -> Content-Type: application/json;charset=UTF-8 -> Content-Length: 69748665 -> Host: localhost:8084 -> Connection: Keep-Alive -> User-Agent: Apache-HttpClient/4.3.6 (java 1.5) -> Expect: 100-continue -> Accept-Encoding: gzip,deflate <- HTTP/1.1 401 Unauthorized <- Server: Apache-Coyote/1.1 <- Set-Cookie: JSESSIONID=00655E5BBBAB2F993D735F5A5B392FB5; Path=/put/; HttpOnly <- WWW-Authenticate: Basic realm="Spring Security Application" <- Content-Type: text/html;charset=utf-8 <- Content-Language: en <- Content-Length: 1104 <- Date: Tue, 24 Feb 2015 10:00:08 GMT <- Connection: close <- ERROR_PAGE -> PUT /put/URL HTTP/1.1 -> Content-Type: application/json;charset=UTF-8 -> Content-Length: 69748665 -> Host: localhost:8084 -> Authorization: Basic cGFzc3dvcmQK== -> Connection: Keep-Alive -> User-Agent: Apache-HttpClient/4.3.6 (java 1.5) -> Expect: 100-continue -> Accept-Encoding: gzip,deflate <- HTTP/1.1 100 Continue -> DATA -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org