Adding proxy support for curl connection