如何在eclipse中设置http代理? [英] How can I set the http proxy in eclipse?

查看:309
本文介绍了如何在eclipse中设置http代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有代码需要进行出站的http连接。不过,我是代理人。
我已经看到了如何设置代理参数的例子,但是没有一个允许我指定我的用户名和密码。有人有例子来帮助我吗?

解决方案

我最终使用Apache HttpClient - http://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientProxyAuthentication.java


I have code that needs to make an outbound http connection. However, I am behind a proxy. I have seen examples of how to set the proxy parameters, but none of which allow me to specify my username and password.

Has anyone got an example to help me out?

解决方案

I ended up using Apache HttpClient - http://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientProxyAuthentication.java

这篇关于如何在eclipse中设置http代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆