Unable to tunnel through proxy. Proxy returns “HTTP/1.1 407” via https

前端 未结 3 1235
醉酒成梦
醉酒成梦 2020-12-03 03:00

I am faced with a curious behaviour of java6/8. I try to tunnel through a proxy which needs basic user authentication. Doing this by the standard java Authenticator. If I tr

3条回答
  •  醉梦人生
    2020-12-03 03:44

    You have to edit the variables jdk.http.auth.tunneling.disabledSchemes and jdk.http.auth.proxying.disabledSchemes to blank like this:

    jdk.http.auth.tunneling.disabledSchemes=
    jdk.http.auth.proxying.disabledSchemes=
    

    In my case I found in this file

    jdk1.8.0_111/jre/lib/net.properties

提交回复
热议问题