RE: [go-nuts] Debug http calls made using go http client

2020-08-23 Thread Mike Spreitzer
To: golang-nuts > Date: 08/23/2020 01:06 PM > Subject: [EXTERNAL] Re: [go-nuts] Debug http calls made using go http client > Sent by: golang-nuts@googlegroups.com > > You can print every step with net/http/httptrace 's ClientTrace. > krishna...@gmail.com a következőt írta (2020. au

Re: [go-nuts] Debug http calls made using go http client

2020-08-23 Thread Tamás Gulácsi
You can print every step with net/http/httptrace 's ClientTrace. krishna...@gmail.com a következőt írta (2020. augusztus 23., vasárnap, 15:55:50 UTC+2): > Hello Dimas, > > Thank you for your response. My application is running in a kubernetes > cluster and I will not be able to run TCPMon or

Re: [go-nuts] Debug http calls made using go http client

2020-08-23 Thread Krishna Kowshik
Hello Dimas, Thank you for your response. My application is running in a kubernetes cluster and I will not be able to run TCPMon or TCPDump separately, as access is restricted. I was looking for something that can be embedded within the go application. Regards, *Krishna* On Sun, Aug 23, 2020

Re: [go-nuts] Debug http calls made using go http client

2020-08-23 Thread Dimas Prawira
There are several tools which you can use to help to inspect, 1. TCPmon, is a java-based tool for inspecting http call in between server and client. TCPmon also can be used to simulate slow connection. Work mechanism of TCPmon is as a proxy. So if I describe it as below [Your apps] --->

Re: [go-nuts] Debug http calls made using go http client

2020-08-21 Thread Robert Engels
I would use wire shark to inspect the traffic in more detail. > On Aug 21, 2020, at 1:59 PM, krishna...@gmail.com > wrote: > >  > Hello Gophers, > > I am making multiple http calls from my go application to an external > vendor's http server using the go standard http client. I've set a 10

[go-nuts] Debug http calls made using go http client

2020-08-21 Thread krishna...@gmail.com
Hello Gophers, I am making multiple http calls from my go application to an external vendor's http server using the go standard http client. I've set a 10 second timeout for my context. Everything works fine. However, I get random timeouts in my application due to these HTTP calls. On