Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
https请求上的Proximo heroku插件超时_Heroku_Proxy_Proximo - Fatal编程技术网

https请求上的Proximo heroku插件超时

https请求上的Proximo heroku插件超时,heroku,proxy,proximo,Heroku,Proxy,Proximo,我刚刚为python应用程序安装了Proximo heroku插件。我装了一个外壳,踢了踢轮胎,击中一个HTTP地址工作,但HTTPS地址没有。HTTP地址显示在Proximo日志中,HTTPS地址超时,日志中不留任何内容 我使用以下代码进行了测试: import urllib2, urllib from django.conf import settings proxy = urllib2.ProxyHandler(settings.PROXIES_DICT) auth = urlli

我刚刚为python应用程序安装了Proximo heroku插件。我装了一个外壳,踢了踢轮胎,击中一个HTTP地址工作,但HTTPS地址没有。HTTP地址显示在Proximo日志中,HTTPS地址超时,日志中不留任何内容

我使用以下代码进行了测试:

import urllib2, urllib
from django.conf import settings

proxy  = urllib2.ProxyHandler(settings.PROXIES_DICT)
auth   = urllib2.HTTPBasicAuthHandler()
opener = urllib2.build_opener(proxy, auth, urllib2.HTTPHandler)
urllib2.install_opener(opener)

urllib2.urlopen("http://google.com").read()  # works fine
urllib2.urlopen("https://google.com").read() # times out
我应该提到的是,代理目录看起来是这样的(密码被替换):

我还应该提到超时异常如下所示:

URLError: <urlopen error [Errno 60] Operation timed out>
URLError:

我不确定我做错了什么。有人能帮忙吗?

此代码尝试使用HTTP连接到Proximo代理,但使用443端口。请尝试以下设置:

{'http': 'http://proxy:password@proxy-54-235-72-96.proximo.io',
 'https': 'http://proxy:password@proxy-54-235-72-96.proximo.io:80'}

您知道Proximo不在HTTPS上侦听,因此从应用程序到代理的连接不会被加密?

明白了,谢谢。是的,我知道它不会在https上监听。如果代理在我的客户机和服务器之间来回传递的数据仍然是加密的,那么代理的实际连接不是加密的就好了。
{'http': 'http://proxy:password@proxy-54-235-72-96.proximo.io',
 'https': 'http://proxy:password@proxy-54-235-72-96.proximo.io:80'}