标签: java apache authentication proxy
我想要的是为需要我使用基本身份验证的资源创建一个http POST。我还想通过代理提出请求,这也需要我进行身份验证。
所以我找到了这些例子:
https://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientAuthentication.java
https://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientProxyAuthentication.java
我如何组合它们?如何为基本身份验证和代理的用户名/密码提供用户名/密码?
谢谢!