Handle proxy and set keep-alive to request instead of JVM

This pull request is made to :
- add support for proxy when needed in requests
- replace keep-alive setting at JVM level (which can impact other applications) and just set the keep-alive configuration by request.