I'm in a corporate network that access to the Internet through a proxy. For instance I have connection to the Internet through the browsers (Firefox, Chrome ...)
The problem is that when I’m trying to connect from the Terminal and set the export
configuration for both (http
and https
) like this:
export http_proxy=http://user:password@ip:port
And I try to make a git clone like this:
git clone https://github.com/octocat/Spoon-Knife
I get:
Cloning into 'Spoon-Knife'...
fatal: unable to access 'https://github.com/octocat/Spoon-Knife/': Received HTTP code 407 from proxy after CONNECT
Some things to note
- I try to access using other commands like curl
curl www.google.com
and still get
Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
- Like I say my Internet connection in the browser works perfectly well. So isn’t a connection issue.
- The only special character that my password has is a
*
and I escaped it properly using%2A
.