hyperpotamus icon indicating copy to clipboard operation
hyperpotamus copied to clipboard

Make it possible to get the server's IP Address into a variable

Open ahawtho opened this issue 7 years ago • 1 comments

I was trying to find a server that had an issue with a round robin DNS. Our changes had been rolled out to some nodes, but not others. I wrote a script that would keep making the request until it failed so we could pinpoint the problem, but it doesn't seem to be possible to get the IP address of the server contacted by the request in the response actions, so I had to resort to curl and bash.

ahawtho avatar Mar 31 '17 23:03 ahawtho

This one is looking like more of a challenge. At first, I was hopeful that the http request/response objects that are available in the session as "hyperpotamus.response" and "hyperpotamus.response.request" would have the remote IP Address available as one of the properties. If this were true, then you could read the value out of the session that way, but looking at things in the debugger, it does not appear to be there anywhere. By the time the request is received, the remoteAddress has been deleted.

pmarkert avatar Apr 01 '17 17:04 pmarkert