I need to know the local port used by an HTTP session. I can get it with RConnection::Control() method but I do not like this approach because
1. I need to enumerate through all open connections
2. NetworkControl capability is needed
Perhaps there is a way to do the job with one of RHTTPxxx classes. Or maybe (it would be even better for me) there is a way to specify the local port explicitly before starting a session.
I will very appreciate any help.