Skip to content

Instantly share code, notes, and snippets.

@imranrazakhan
Last active September 14, 2019 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imranrazakhan/9f97abb6080d1ab09825da7c08e53566 to your computer and use it in GitHub Desktop.
Save imranrazakhan/9f97abb6080d1ab09825da7c08e53566 to your computer and use it in GitHub Desktop.
HTTP Debug
Trace:
DEBUG http-outgoing-0 >> GET /api/v1/watch/namespaces/my-qa/configmaps/my-config-map HTTP/1.1
DEBUG http-outgoing-0 >> Accept: application/json
DEBUG http-outgoing-0 >> Authorization: Bearer xxx
DEBUG http-outgoing-0 >> breadcrumbId: ID-NB-118-1568476509695-0-1
DEBUG http-outgoing-0 >> firedTime: Sat Sep 14 17:55:14 CEST 2019
DEBUG http-outgoing-0 >> Host: localhost:8443
DEBUG http-outgoing-0 >> Connection: Keep-Alive
DEBUG http-outgoing-0 >> User-Agent: Apache-HttpClient/4.5.6 (Java/1.8.0_162)
DEBUG http-outgoing-0 >> Accept-Encoding: gzip,deflate
DEBUG http-outgoing-0 >> "GET /api/v1/watch/namespaces/my-qa/configmaps/my-config-map HTTP/1.1[\r][\n]"
DEBUG http-outgoing-0 >> "Accept: application/json[\r][\n]"
DEBUG http-outgoing-0 >> "Authorization: Bearer xxx[\r][\n]"
DEBUG http-outgoing-0 >> "breadcrumbId: ID-NB-118-1568476509695-0-1[\r][\n]"
DEBUG http-outgoing-0 >> "firedTime: Sat Sep 14 17:55:14 CEST 2019[\r][\n]"
DEBUG http-outgoing-0 >> "Host: m.devokd.younicos.local:8443[\r][\n]"
DEBUG http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
DEBUG http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.5.6 (Java/1.8.0_162)[\r][\n]"
DEBUG http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
DEBUG http-outgoing-0 >> "[\r][\n]"
DEBUG http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
DEBUG http-outgoing-0 << "Cache-Control: no-store[\r][\n]"
DEBUG http-outgoing-0 << "Content-Type: application/json[\r][\n]"
DEBUG http-outgoing-0 << "Date: Sat, 14 Sep 2019 15:55:14 GMT[\r][\n]"
DEBUG http-outgoing-0 << "Transfer-Encoding: chunked[\r][\n]"
DEBUG http-outgoing-0 << "[\r][\n]"
DEBUG http-outgoing-0 << HTTP/1.1 200 OK
DEBUG http-outgoing-0 << Cache-Control: no-store
DEBUG http-outgoing-0 << Content-Type: application/json
DEBUG http-outgoing-0 << Date: Sat, 14 Sep 2019 15:55:14 GMT
DEBUG http-outgoing-0 << Transfer-Encoding: chunked
DEBUG Connection can be kept alive indefinitely
DEBUG Http responseCode: 200
TRACE Copying InputStream: org.apache.http.conn.EofSensorInputStream@3ab22477 -> OutputStream: CachedOutputStream[size: 0] with buffer: 4096 and flush on each write false
DEBUG http-outgoing-0 << "158[\r][\n]"
DEBUG http-outgoing-0 << "{"type":"ADDED","object":{"kind":"ConfigMap","apiVersion":"v1","metadata":{"name":"my-config-map","namespace":"my-qa","selfLink":"/api/v1/namespaces/my-qa/configmaps/my-config-map","uid":"a8130369-d703-11e9-b37c-d2c8065c1507","resourceVersion":"33040706","creationTimestamp":"2019-09-14T15:23:51Z"},"data":{"test":"added first modification"}}}[\n]"
DEBUG http-outgoing-0 << "[\r][\n]"
****Below data received after 2 minutes on same open connection****
DEBUG http-outgoing-0 << "156[\r][\n]"
DEBUG http-outgoing-0 << "{"type":"MODIFIED","object":{"kind":"ConfigMap","apiVersion":"v1","metadata":{"name":"my-config-map","namespace":"yq-qa","selfLink":"/api/v1/namespaces/my-qa/configmaps/my-config-map","uid":"a8130369-d703-11e9-b37c-d2c8065c1507","resourceVersion":"33044977","creationTimestamp":"2019-09-14T15:23:51Z"},"data":{"test":"second modification"}}}[\n]"
DEBUG http-outgoing-0 << "[\r][\n]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment