使用带有代理身份验证的 Grails Rest 插件?
我想使用以下 grails 插件来使用 Google 缩短 url API。
http://www.grails.org/plugin/rest
问题是我需要使用它具有代理身份验证设置(带有用户名和密码) API 为我提供了 setProxy,但没有用户名和密码设置。
如何在此处设置我的代理身份验证详细信息?
让我知道是否还有其他选择。我无法使用 google-url-shortener 插件,因为我仍在使用与该插件不兼容的 grails 1.2.0。
谢谢, 罗伯特
I would like to use the following grails plugin to use Google shorten url API.
http://www.grails.org/plugin/rest
The problem is I need to use it with proxy authentication setting (with username and password)
The API gives me setProxy, but without username and password setting.
How can I set my proxy authentication detail here?
Let me know if there is another alternative. I can't use google-url-shortener plugin because I'm still using grails 1.2.0 which is not compatible with the plugin.
Thanks,
Robert
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试设置 Proxy-Authorization 标头来对代理进行身份验证。类似于以下内容:
You could try setting the Proxy-Authorization header to authenticate to the proxy. Something similar to the following: