Tag: 代理

如何为python http连接指定经过身份validation的代理?

在python中为http连接指定一个带有用户名和密码的代理的最佳方式是什么?

自动生成的代理后面的Maven

我在一个自动生成的代理。 我已经configuration我的settings.xml来使用这个代理,但它仍然无法正常工作。 Android SDK可以正常使用我设置的相同代理。 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <proxies> <proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <username></username> <password></password> <host>MY-PROXY-HOST-HERE</host> <port>8080</port> <nonProxyHosts></nonProxyHosts> </proxy> </proxies> </settings> 还有什么可以让maven工作? 错误: WARNING: NTLM authentication error: Credentials cannot be used for NTLM authenti cation: org.apache.maven.wagon.providers.http.httpclient.auth.UsernamePasswordCr edentials 如何让我的NTLM身份validation信用卡? Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (http://repo.maven.apache.org/maven2): Not authorized by proxy , ReasonPhrase:Proxy […]

使用HTTP代理 – Python

我很熟悉我应该将HTTP_RPOXY环境variables设置为代理地址。 一般urllib工作正常,问题是处理urllib2。 >>> urllib2.urlopen("http://www.google.com").read() 回报 urllib2.URLError: <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it> 要么 urllib2.URLError: <urlopen error [Errno 11004] getaddrinfo failed> 额外信息: urllib.urlopen(….)正常工作! 这只是urllib2是玩技巧… 我试过@Fenikso答案,但现在我得到这个错误: URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of […]

如何设置Android模拟器代理设置?

我想在Android模拟器中使用浏览器,我想在我的机器上使用代理设置。 我怎样才能设置? 阅读非常好的Android手册,他们告诉我,我应该使用以下命令启动Android: emulator -avd myavd -http-proxy http://168.192.1.2:3300 但是我仍然无法使用模拟器浏览器。 请注意,我正在使用我的代理服务器的IP地址。 我究竟做错了什么?

我如何使用http代理与node.js http.Client?

我想使用标准的http.Client从node.js发出一个传出的HTTP调用。 但我无法直接从我的networking到达远程服务器,需要通过代理。 如何告诉node.js使用代理?

如何通过代理使用CURL?

我期待设置curl使用代理服务器。 url是由html表单提供的,这一直没有问题。 没有代理,它工作正常。 我已经在这个和其他网站上find代码,但他们不工作。 任何帮助find正确的解决scheme将不胜感激。 我觉得下面的波纹pipe很近,但我错过了一些东西。 谢谢。 下面的代码我改编自http://www.webmasterworld.com/forum88/10572.htm,但它返回了关于第12行缺lessT_VARIABLE的错误消息。 <? $url = '$_POST[1]'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0); curl_setopt($ch, CURLOPT_PROXY, '66.96.200.39:80'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); curl_setopt($ch, CURLOPT_CUSTOMREQUEST,'GET'); curl_setopt ($ch, CURLOPT_HEADER, 1) curl_exec ($ch); $curl_info = curl_getinfo($ch); curl_close($ch); echo '<br />'; print_r($curl_info); ?> 波纹pipe是通过代理退货没有内容的 <? $proxy = "66.96.200.39:80"; $proxy = explode(':', $proxy); […]

不能在代理下载Docker镜像

我在我的Ubuntu 13.10上安装了docker,当我input我的控制台时: sudo docker pull busybox 我得到以下错误: Pulling repository busybox 2014/04/16 09:37:07 Get https://index.docker.io/v1/repositories/busybox/images: dial tcp: lookup index.docker.io on 127.0.1.1:53: no answer from server Docker版本: $ sudo docker version Client version: 0.10.0 Client API version: 1.10 Go version (client): go1.2.1 Git commit (client): dc9c28f Server version: 0.10.0 Server API version: 1.10 Git commit (server): dc9c28f […]

只使用代理某些giturl/域名?

有没有可能configurationgit只为特定的域使用代理? 我想使用我们的公司代理来访问Github,但离开它访问我们自己的内部git回购。 我正在使用鲍尔,它需要我们的防火墙和github内的项目,所以我不能这样做,作为一个项目设置。 它需要是某种全局configuration选项。 有什么想法吗?

如何从代理(ISA-NTLM)后面更新Ruby Gems

我在后面的防火墙是以NTLM-only模式运行Microsoft ISA服务器。 哈希任何人有成功得到他们的Rubygem安装/更新通过Ruby SSPIgem或其他方法? …或者我只是懒惰? 注意:rubysspi-1.2.4不起作用。 这也适用于IronRuby项目的一部分“igem”

Hibernate:session.get和session.load之间的区别

从API中,我可以看到它与代理有关。 但是我找不到很多关于代理的信息,不明白调用session.get和session.load的区别。 有人可以解释或指引我参考页面? 谢谢!!