2

Used sdkman to install several packages (had to set proxy and proxy-user in .curlrc to negotiate the corporate proxy). When I tried installing grails and groovyserv they both fail with curl Received HTTP code 403 from proxy after CONNECT.

I think I'm negotiating the proxy OK (because the other installs worked), so does this indicate that there is something different at the end server giving me the grails content, or is my proxy objecting to the grails content.

Any advice on how to debug / fix would be appreciated

Windows XP, cygwin (very recent download), Corporate proxy

$ sdk current

Using: gradle: 2.7 groovy: 2.4.4 lazybones: 0.8.1 vertx: 3.0.0

$ sdk install grails

Downloading: grails 3.0.7

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

curl: (56) Received HTTP code 403 from proxy after CONNECT

Gordon Rehling
  • 121
  • 1
  • 7

3 Answers3

3

After opening your Cygwin command prompt window, type in this:

export http_proxy=http://yourusername:yourpassword@host:port/

For example:

export http_proxy=http://superman:batman@111.112.113.114:8080/

Hope this will work for you (only worked for me with half of the available candidates, sad).

ian0411
  • 4,115
  • 3
  • 25
  • 33
  • 1
    Wouldn't work for me until I put port 80 and the slash on the end.... (windows 10) – Adam Mar 28 '18 at 11:11
1

I added 'verbose' to my .curlrc and spotted the following:

I wonder if the Grails team would consider using bintray instead of github?

Gordon Rehling
  • 121
  • 1
  • 7
1

I my case to work behind a corporate proxy.

  • set up proxy env variables

export http_proxy="http://user:pwd@10.xxx.xxx.xxx:yy"

export https_proxy="http://user:pwd@10.xxx.xxx.xxx:yy"

  • some corporate proxies use certificates signed by their own CA's. you should install the root CA's. Another not recomened option is adding sdkman_insecure_ssl=true to ~/.sdkman/etc/config
Jordi Escofet
  • 88
  • 2
  • 6