I am using InternalHttpClient and would like to print the local port on which the request was made. If the request was successful, I can use the HttpClientContext to retrieve the local port number. However, if an IOException is thrown, I am unable to get the local port number as it fails with ConnectionShutdownException.
Can you please help me find out how I can get local port number for all requests? Regards, nitu
