httpbin icon indicating copy to clipboard operation
httpbin copied to clipboard

document `show_env` parameter

Open georgexsh opened this issue 7 years ago • 4 comments

I cannt found documention of the show_env parameter from https://httpbin.org/.

despite the default behavior of httpbin is very odd, it hides many HTTP headers which are very important to some user, like me, a sysadmin, this behavior and the method to flip it, needs documentation.

georgexsh avatar Sep 21 '18 07:09 georgexsh

nateprewitt commented on Oct 23, 2018 Thanks @georgexsh! This was added by Kenneth as part of his setup routine, I'll defer to him on whether it persists going forward.

@kennethreitz Can we discuss this? I would love to get your initial thoughts as to removal or officially documenting this.

My Context We just got hit by this when investigating some issues with XFF in a k8s/istio environment. It diverted a couple hundred hours of dev time for us. (Not trying to blame, just want to show scale/impact.)

LaikaN57 avatar Feb 09 '23 20:02 LaikaN57

It is just intended to add headers that are platform, specific, e.g. from a load balancer and not from your actual HTTP requestSent from my iPhoneOn Feb 9, 2023, at 2:52 PM, Alex Kennedy @.***> wrote:

nateprewitt commented on Oct 23, 2018 Thanks @georgexsh! This was added by Kenneth as part of his setup routine, I'll defer to him on whether it persists going forward.

@kennethreitz Can we discuss this? I would love to get your initial thoughts as to removal or officially documenting this. My Context We just got hit by this when investigating some issues with XFF in a k8s/istio environment. It diverted a couple hundred hours of dev time for us. (Not trying to blame, just want to show scale/impact.)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

kennethreitz avatar Feb 09 '23 20:02 kennethreitz

Sorry, maybe I was not clear. I would ideally like to invert the default behavior and get back all the headers that my application is seeing. As my application may depend on something like XFF and I would like to see what values it is receiving when using the same infra but swapping out my app for httpbin. In my use-case we are using it more for a infra/platform debug tool.

LaikaN57 avatar Feb 09 '23 20:02 LaikaN57

Application versus service considerations. Sent from my iPhoneOn Feb 9, 2023, at 2:59 PM, Alex Kennedy @.***> wrote: Sorry, maybe I was not clear. I would ideally like to invert the default behavior and get back all the headers that my application is seeing. As my application may depend on something like XFF and I would like to see what values it is receiving when using the same infra but swapping out my app for httpbin. In my use-case we are using it more for a infra/platform debug tool.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

kennethreitz avatar Feb 09 '23 23:02 kennethreitz