>
>
>
> Please post a snippet of your code and a _complete_ wire / context log
> as an attachment.
>
> Oleg
>
>
Here's where I make the connection and do the request:
https://github.com/TremoloSecurity/OpenUnison/blob/1.0.15/unison/unison-server-core/src/main/java/com/tremolosecurity/proxy/postProcess/PushRequestProcess.java#L81

Here's the code i'm using to read the output stream:
https://github.com/TremoloSecurity/OpenUnison/blob/1.0.15/unison/unison-server-core/src/main/java/com/tremolosecurity/proxy/ConfigSys.java#L460

Attached is the full wire log for both a GET and a POST

Thanks
Marc
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"POST / HTTP/1.1[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"POST / HTTP/1.1[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Host: unison-opa.unison.svc.cluster.local[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Host: unison-opa.unison.svc.cluster.local[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Accept: */*[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Accept: */*[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"User-Agent: curl/7.29.0[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"User-Agent: curl/7.29.0[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Content-Length: 1963[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Content-Length: 1963[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Content-Type: application/json[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Content-Type: application/json[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Connection: Keep-Alive[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Connection: Keep-Alive[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Accept-Encoding: gzip,deflate[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"Accept-Encoding: gzip,deflate[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"[\r][\n]"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-390 >> 
"{"request":{"uid":"8a4f6ac8-900d-11e8-8460-525400887c40","userInfo":{"injectedIdentity":"eyJraWQiOiJDTj1qd3Qtc2lnLCBPVT1kZXYsIE89ZGV2LCBMPWRldiwgU1Q9ZGV2LCBDPWRldi1DTj1qd3Qtc2lnLCBPVT1kZXYsIE89ZGV2LCBMPWRldiwgU1Q9ZGV2LCBDPWRldi0xNTI4Njg0NDk0MTI5IiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL3VuaXNvbi1vcGEudW5pc29uLnN2Yy5jbHVzdGVyLmxvY2FsIiwiYXVkIjoiaHR0cHM6Ly9vcGEudW5pc29uLnN2YyIsImV4cCI6MTUzMjYzNzQ2MSwianRpIjoiQXpXeDk5TldwS0NyaWF6dHIyVGFEQSIsImlhdCI6MTUzMjYzNzQwMSwibmJmIjoxNTMyNjM3MzQxLCJub25jZSI6IjM0OTc2MmJjLWNlNjktNGU5OC1hZDc3LTExM2IzMWQyYWU3NyIsInN1YiI6Im1tb3NsZXlAZW50MmsxMi5kb21haW4uY29tIiwicm9sZXMiOlsiT3BlblNoaWZ0IC0gY2x1c3Rlci1hZG1pbnMiLCJGcmVlSVBBIC0gYXBwbGljYXRpb25zLW9wZW5zaGlmdCIsIkZyZWVJUEEgLSBhcHByb3ZlcnMtaW5mcmFzdHJ1Y3R1cmUiLCJGcmVlSVBBIC0gaW5mcmFzdHJ1Y3R1cmUtaXBhIl19.U57RoDrAfUaPn9WcA2sM1zzLE8F-h7ngiurYuN3T-Q6dUwOIMi7B2BeqYoRTUNDsoF_B0vyWL6Z1YxDXO7p5TTqeUCVxLyvSqxGo9Lq4O3JLiLpfH0XVs4FnByVCSHy_1PS3Ihd0S6cXmY8sk_V_KwVlPeJbU4TeXjVxd2KFpQBQdCIHYX62rjWCOc2ch7gmsn2ck0roYCuCUt4W6CsDj-ORGflS2ufBBrJviMYH3yDGQSgqR9DT3GbRGD5z90-AVes6YI_pnxkH01iM4y2bNhnbmBPvoSZiab0o-fmbk0IWT39SsMKnFBkhkU0C7VoqHW1BK3irAsJ2ztjr05uYrA","uid":"531a9e54-6d22-11e8-9873-525400887c40","extra":{"scopes.authorization.openshift.io":["user:full"]},"groups":["cluster-admins","system:authenticated:oauth","system:authenticated"],"username":"mmos...@ent2k12.domain.com"},"resource":{"resource":"persistentvolumeclaims","version":"v1","group":""},"kind":{"kind":"PersistentVolumeClaim","version":"v1","group":""},"namespace":"unison","oldObject":null,"operation":"CREATE","object":{"metadata":{"uid":"8a4ef922-900d-11e8-8460-525400887c40","name":"pvc-cifs-ldrive-freeipa2","namespace":"unison","creationTimestamp":"2018-07-25T13:20:46Z"},"spec":{"storageClassName":"","volumeName":"pv-cifs-freeipa2-freeipa2-share-xx","resources":{"requests":{"storage":"100Gi"}},"accessModes":["ReadWriteMany"]},"status":{}}},"apiVersion":"admission.k8s.io\/v1beta1","kind":"AdmissionReview"}"
[2018-07-26 20:36:41,577][XNIO-2 task-10] DEBUG wire - http-outgoing-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o-fmbk0IWT39SsMKnFBkhkU0C7VoqHW1BK3irAsJ2ztjr05uYrA","uid":"531a9e54-6d22-11e8-9873-525400887c40","extra":{"scopes.authorization.openshift.io":["user:full"]},"groups":["cluster-admins","system:authenticated:oauth","system:authenticated"],"username":"mmos...@ent2k12.domain.com"},"resource":{"resource":"persistentvolumeclaims","version":"v1","group":""},"kind":{"kind":"PersistentVolumeClaim","version":"v1","group":""},"namespace":"unison","oldObject":null,"operation":"CREATE","object":{"metadata":{"uid":"8a4ef922-900d-11e8-8460-525400887c40","name":"pvc-cifs-ldrive-freeipa2","namespace":"unison","creationTimestamp":"2018-07-25T13:20:46Z"},"spec":{"storageClassName":"","volumeName":"pv-cifs-freeipa2-freeipa2-share-xx","resources":{"requests":{"storage":"100Gi"}},"accessModes":["ReadWriteMany"]},"status":{}}},"apiVersion":"admission.k8s.io\/v1beta1","kind":"AdmissionReview"}"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"HTTP/1.1 200 OK[\r][\n]"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"HTTP/1.1 200 OK[\r][\n]"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"Content-Type: application/json[\r][\n]"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"Content-Type: application/json[\r][\n]"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"Date: Thu, 26 Jul 2018 20:36:41 GMT[\r][\n]"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"Date: Thu, 26 Jul 2018 20:36:41 GMT[\r][\n]"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"Content-Length: 182[\r][\n]"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"Content-Length: 182[\r][\n]"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"[\r][\n]"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"[\r][\n]"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"{"apiVersion":"admission.k8s.io/v1beta1","kind":"AdmissionReview","response":{"allowed":false,"status":{"reason":"invalid
 persistent volume \"pv-cifs-freeipa2-freeipa2-share-xx\""}}}"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"{"apiVersion":"admission.k8s.io/v1beta1","kind":"AdmissionReview","response":{"allowed":false,"status":{"reason":"invalid
 persistent volume \"pv-cifs-freeipa2-freeipa2-share-xx\""}}}"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"[read] I/O error: Socket is closed"
[2018-07-26 20:36:41,580][XNIO-2 task-10] DEBUG wire - http-outgoing-390 << 
"[read] I/O error: Socket is closed"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"GET /v1/data/kubernetes/persistentvolumes/pv-cifs-rdrive-freeipa3 
HTTP/1.1[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"GET /v1/data/kubernetes/persistentvolumes/pv-cifs-rdrive-freeipa3 
HTTP/1.1[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"Host: unison-opa.unison.svc.cluster.local[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"Host: unison-opa.unison.svc.cluster.local[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"Accept: */*[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"Accept: */*[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"User-Agent: curl/7.29.0[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"User-Agent: curl/7.29.0[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"Connection: Keep-Alive[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"Connection: Keep-Alive[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"Accept-Encoding: gzip,deflate[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"Accept-Encoding: gzip,deflate[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"[\r][\n]"
[2018-07-26 20:46:00,753][XNIO-2 task-11] DEBUG wire - http-outgoing-391 >> 
"[\r][\n]"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"HTTP/1.1 200 OK[\r][\n]"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"HTTP/1.1 200 OK[\r][\n]"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"Content-Type: application/json[\r][\n]"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"Content-Type: application/json[\r][\n]"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"Date: Thu, 26 Jul 2018 20:46:00 GMT[\r][\n]"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"Date: Thu, 26 Jul 2018 20:46:00 GMT[\r][\n]"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"Content-Length: 839[\r][\n]"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"Content-Length: 839[\r][\n]"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"[\r][\n]"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"[\r][\n]"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"{"result":{"apiVersion":"v1","kind":"PersistentVolume","metadata":{"annotations":{"pv.kubernetes.io/bound-by-controller":"yes"},"creationTimestamp":"2018-07-10T15:33:23Z","name":"pv-cifs-rdrive-freeipa3","resourceVersion":"10261264","selfLink":"/api/v1/persistentvolumes/pv-cifs-rdrive-freeipa3","uid":"9510d354-8456-11e8-9959-525400887c40"},"spec":{"accessModes":["ReadWriteMany"],"capacity":{"storage":"100Gi"},"claimRef":{"apiVersion":"v1","kind":"PersistentVolumeClaim","name":"pvc-cifs-rdrive-freeipa3","namespace":"freeipa3-project","resourceVersion":"10261262","uid":"95369594-8456-11e8-9959-525400887c40"},"flexVolume":{"driver":"azure/cifs","options":{"source":"//adfs.ent2k12.domain.com/rdrive","uidnum":"160812450","username":"freei...@ent2k12.domain.com"}},"persistentVolumeReclaimPolicy":"Retain"},"status":{"phase":"Bound"}}}"
[2018-07-26 20:46:00,761][XNIO-2 task-11] DEBUG wire - http-outgoing-391 << 
"{"result":{"apiVersion":"v1","kind":"PersistentVolume","metadata":{"annotations":{"pv.kubernetes.io/bound-by-controller":"yes"},"creationTimestamp":"2018-07-10T15:33:23Z","name":"pv-cifs-rdrive-freeipa3","resourceVersion":"10261264","selfLink":"/api/v1/persistentvolumes/pv-cifs-rdrive-freeipa3","uid":"9510d354-8456-11e8-9959-525400887c40"},"spec":{"accessModes":["ReadWriteMany"],"capacity":{"storage":"100Gi"},"claimRef":{"apiVersion":"v1","kind":"PersistentVolumeClaim","name":"pvc-cifs-rdrive-freeipa3","namespace":"freeipa3-project","resourceVersion":"10261262","uid":"95369594-8456-11e8-9959-525400887c40"},"flexVolume":{"driver":"azure/cifs","options":{"source":"//adfs.ent2k12.domain.com/rdrive","uidnum":"160812450","username":"freei...@ent2k12.domain.com"}},"persistentVolumeReclaimPolicy":"Retain"},"status":{"phase":"Bound"}}}"
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to