Desmond Yeung created HTTPCORE-630:
--------------------------------------
Summary: Client with Http1Config using HTTP/2
Key: HTTPCORE-630
URL: https://issues.apache.org/jira/browse/HTTPCORE-630
Project: HttpComponents HttpCore
Issue Type: Bug
Affects Versions: 5.0
Reporter: Desmond Yeung
Our application uses HTTP/1.1. I started noticing some corrupted responses in
our staging environment. When I turned on DEBUG logging I realized the client
was using HTTP2.
I haven't been able to reproduce this on my laptop, but it's pretty consistent
in my staging environment. Not clear if it's a client or server issue.
Please let me know if any more information is needed.
Logging on laptop:
{noformat}
2020-05-01 12:31:05,015 DEBUG
[org.apache.hc.client5.http.impl.async.HttpAsyncMainClientExec] ex-00000001:
send request GET /drive/v2/files?fields=* HTTP/1.1, entity len 0
2020-05-01 12:31:05,016 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> GET /drive/v2/files?fields=* HTTP/1.1
2020-05-01 12:31:05,016 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> Authorization: Bearer <REDACTED>
2020-05-01 12:31:05,016 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> User-Agent: Apache-HttpAsyncClient/5.0
2020-05-01 12:31:05,016 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> Content-Length: 0
2020-05-01 12:31:05,016 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> Content-Type: none/none
2020-05-01 12:31:05,016 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> Host: www.googleapis.com
2020-05-01 12:31:05,017 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> Connection: keep-alive
2020-05-01 12:31:05,019 DEBUG
[org.apache.hc.client5.http.impl.async.HttpAsyncMainClientExec] ex-00000001:
produce request data
2020-05-01 12:31:05,020 DEBUG
[org.apache.hc.client5.http.impl.async.HttpAsyncMainClientExec] ex-00000001:
end of request data
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< HTTP/1.1 200 OK
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< Expires: Fri, 01 May 2020 16:31:07 GMT
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< Date: Fri, 01 May 2020 16:31:07 GMT
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< Cache-Control: private, max-age=0, must-revalidate, no-transform
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< ETag: "qw7V4HlQXCZgokNM-HXv1Wb0iw0"
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< Vary: Origin
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< Vary: X-Origin
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< Content-Type: application/json; charset=UTF-8
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< Transfer-Encoding: chunked
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< X-Content-Type-Options: nosniff
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< X-Frame-Options: SAMEORIGIN
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< Content-Security-Policy: frame-ancestors 'self'
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< X-XSS-Protection: 1; mode=block
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< Server: GSE
2020-05-01 12:31:07,603 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< Alt-Svc: h3-Q050=":443"; ma=2592000,h3-Q049=":443";
ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443";
ma=2592000,h3-Q043=":443"; ma=2592000,h3-T050=":443"; ma=2592000,quic=":443";
ma=2592000; v="46,43"
{noformat}
Logging from staging environment:
{noformat}
2020-05-01 12:34:33,603 DEBUG
[org.apache.hc.client5.http.impl.async.HttpAsyncMainClientExec] ex-00000001:
send request GET /drive/v2/files?fields=* HTTP/1.1, entity len 0
2020-05-01 12:34:33,605 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> :method: GET
2020-05-01 12:34:33,605 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> :scheme: https
2020-05-01 12:34:33,605 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> :authority: www.googleapis.com
2020-05-01 12:34:33,605 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> :path: /drive/v2/files?fields=*
2020-05-01 12:34:33,605 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> authorization: Bearer <REDACTED>
2020-05-01 12:34:33,606 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> user-agent: Apache-HttpAsyncClient/5.0
2020-05-01 12:34:33,606 DEBUG [org.apache.hc.client5.http.headers] c-00000000
>> content-type: none/none
2020-05-01 12:34:33,608 DEBUG
[org.apache.hc.client5.http.impl.async.HttpAsyncMainClientExec] ex-00000001:
produce request data
2020-05-01 12:34:33,608 DEBUG
[org.apache.hc.client5.http.impl.async.HttpAsyncMainClientExec] ex-00000001:
end of request data
2020-05-01 12:34:36,194 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< :status: 200
2020-05-01 12:34:36,194 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< expires: Fri, 01 May 2020 16:34:36 GMT
2020-05-01 12:34:36,195 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< date: Fri, 01 May 2020 16:34:36 GMT
2020-05-01 12:34:36,195 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< cache-control: private, max-age=0, must-revalidate, no-transform
2020-05-01 12:34:36,195 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< etag: "sRicZzQlOyTcEPqA8ejyZsqXIEQ"
2020-05-01 12:34:36,195 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< vary: Origin
2020-05-01 12:34:36,195 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< vary: X-Origin
2020-05-01 12:34:36,195 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< content-type: application/json; charset=UTF-8
2020-05-01 12:34:36,195 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< x-content-type-options: nosniff
2020-05-01 12:34:36,196 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< x-frame-options: SAMEORIGIN
2020-05-01 12:34:36,197 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< content-security-policy: frame-ancestors 'self'
2020-05-01 12:34:36,197 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< x-xss-protection: 1; mode=block
2020-05-01 12:34:36,197 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< server: GSE
2020-05-01 12:34:36,198 DEBUG [org.apache.hc.client5.http.headers] c-00000000
<< alt-svc: h3-Q050=":443"; ma=2592000,h3-Q049=":443";
ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443";
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]