proxy-server

Connecting to Azure storage account thru proxy server

筅森魡賤 提交于 2019-12-21 00:44:58
问题 My 'LocalClient' app is in a corporate LAN behind an HTTP proxy server (ISA). The first Azure API call i make - CloudQueue.CreateIfNotExist() - causes an exception: (407) Proxy Authentication Required. I tried following things: Added the <System.Net > defaultProxy element to app.config, but it doesn't seem to be working (Reference: http://geekswithblogs.net/mnf/archive/2006/03/08/71663.aspx). I configured 'Microsoft Firewall Client for ISA Server', but that did not help either. Used a custom

Proxy Authentication in .NET - for external API

亡梦爱人 提交于 2019-12-20 10:25:24
问题 I'm developing a twitter messaging utility using Twitter API (twitterizer). But since I'm within a corporate proxy, I'm getting the error '407 Proxy Authentication Required'. Is there any way to authenticate the user before calling the API or use the default proxy settings? P.S Internally the API is using HttpWebRequest. 回答1: This does not answer your question. But the error you are getting is clearly a Proxy authentication error. You might want to either disable or enable the proxy. To

How to pass proxy-authentication (requires digest auth) by using python requests module

巧了我就是萌 提交于 2019-12-18 10:46:14
问题 I was using Mechanize module a while ago, and now try to use Requests module. (Python mechanize doesn't work when HTTPS and Proxy Authentication required) I have to go through proxy-server when I access the Internet. The proxy-server requires authentication. I wrote the following codes. import requests from requests.auth import HTTPProxyAuth proxies = {"http":"192.168.20.130:8080"} auth = HTTPProxyAuth("username", "password") r = requests.get("http://www.google.co.jp/", proxies=proxies, auth

How to get started with web caching, CDNs, and proxy servers? [closed]

风流意气都作罢 提交于 2019-12-18 10:34:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I'm newbie programmer building a startup that I (naturally) hope will create a large amount of traffic. I am hosting my django project on dotcloud, which is on Amazon EC2. I have some streaming media (Http though, not rmtp) so the dotcloud guys recommended I go with a CDN. I am

General SOCKS server failure while using tor proxy

不问归期 提交于 2019-12-13 20:55:52
问题 I am proxying traffic over tor, so letter on when I need to call localhost port, it gives failure error. def create_connection(self, address, timeout=None, source_address=None): sock = socks.socksocket() sock.connect(address) return sock def getVideoTrend(self): socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050) socket.socket = socks.socksocket socket.create_connection = self.create_connection #some code Mongo.SaveEntity() SaveEntity contains: hostname = 'localhost' port =

How can I host a web.config-only server?

女生的网名这么多〃 提交于 2019-12-11 07:33:32
问题 Context See this question: Enable CORS on Azure Service Bus Namespace Really I want to have a front-end only ReactJS app that talks to the Azure API, and renders bits of the result onto the screen. Then gets input from the users and sends that back to the Azure API. Rinse and repeat. Unfortunately CORS pretty much rules that out, and you can't[1] override the CORS rules for a ServiceBus Namespace. So the proposed solution is a thin proxy server, proxying the Azure API, to circumvent CORS.

给Android Studio设置代理

▼魔方 西西 提交于 2019-12-06 20:04:44
在进行代理设置前,首先你得有代理服务器。如果没有,可参见我前一篇文章《 使用傻瓜包goagent翻墙 》。 下面,我假定我的代理服务器的IP为192.168.137.1(局域网里面用)或127.0.0.1(本机中使用),端口为8087,来讲解一下关于一些工具的代理设置方法,包括: android sdk manager, android studio, svn, git, gradle, curl, repo, wget。 1.Android SDK Manager的代理设置 打开Tools菜单,选择Options,如下图。 在Settings的对话框中,在Http Proxy Server和Http Proxy Port中分别填入你代理服务器的IP地址和端口号。然后勾住下面的Force https://... sources to be fetched using http://...。然后点close关闭。再选择Packages reload,就可以了。 注意,在这里我说一下一点问题:在我的电脑中,当我使用goagent 3.1.18时我ubuntu电脑上的sdk可以更新,但是win7的这台电脑的sdk无法更新,显示是SSL问题,如下图所示。 但是我如果用goagent3.1.6版本的话,就可以了。原因不明。 2.Android Studio的代理设置 打开File菜单==

数据抓取使用HTTP代理ip代码示例

故事扮演 提交于 2019-12-05 19:18:16
HTTP Proxy Demo 代码 1、Python #! -- encoding:utf-8 -- import requests # 要访问的目标页面 targetUrl = "http://ip.hahado.cn/ip" # 代理服务器 proxyHost = "ip.hahado.cn" proxyPort = "39010" # 代理隧道验证信息 proxyUser = "username" proxyPass = "password" proxyMeta = "http://%(user)s:%(pass)s@%(host)s:%(port)s" % { "host" : proxyHost, "port" : proxyPort, "user" : proxyUser, "pass" : proxyPass, } proxies = { "http" : proxyMeta, "https" : proxyMeta, } resp = requests.get(targetUrl, proxies=proxies) print resp.status_code print resp.text 2、C Sharp HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://ip.hahado

Phantom.js / Casper.js with rotating proxy?

邮差的信 提交于 2019-12-04 06:19:15
I have a simple goal: load webpages with either phantom.js (out of the box) or casper.js (nice and easier) but using proxy and rotate it from a list if current one is bad (i.e. webpage loads fail or something like that). I know casper.js has --proxy param but it dictates the user to specify only ONE proxy and use it during runtime. Question #1 is: how to rotate proxy on the fly programmatically? I did some research and found this node-requester but it's not integrated with casper.js . I tried to extract out just the proxy feature in the code but didn't really understand how it works in the