proxy

Making HTTP requests via Python Requests module not working via proxy where curl does? Why?

雨燕双飞 提交于 2020-01-10 18:20:29
问题 Using this curl command I am able to get the response I am looking for from Bash curl -v -u z:secret_key --proxy http://proxy.net:80 \ -H "Content-Type: application/json" https://service.com/data.json I have already seen this other post on proxies with the Requests module And it helped me formulate my code in Python but I need to make a request via a proxy. However, even while supplying the proper proxies it isn't working. Perhaps I'm just not seeing something? >>> requests.request('GET',

How do I replace Deprecated httpClient.getParams() with RequestConfig?

僤鯓⒐⒋嵵緔 提交于 2020-01-10 12:03:15
问题 I have inherited the code import org.apache.http.client.HttpClient; ... HttpClient httpclient = createHttpClientOrProxy(); ... private HttpClient createHttpClientOrProxy() { HttpClient httpclient = new DefaultHttpClient(); /* * Set an HTTP proxy if it is specified in system properties. * * http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html * http://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientExecuteProxy.java */ if(

iOS 8 / Xcode 6 Simulator is not using HTTP Proxy anymore

久未见 提交于 2020-01-10 08:47:05
问题 My iOS 8 Simulator is not using my proxy settings anymore (I want to debug with Charles). The rest of the system does. The simulator somehow seems to get direct internet access. Have I missed some new setting? Caution: this is NO dup of How to use Charles Proxy on the Xcode 6 (iOS 8) Simulator?. I´m not trying to use SSL on the simulator in the first place. My simulator doesn´t even start to use the proxy. Charles: System: 回答1: Restart the simulator between proxy changes 回答2: This is correct.

HttpWebRequest.Proxy in Windows Phone 7?

ぐ巨炮叔叔 提交于 2020-01-10 04:27:04
问题 It seems that .NET Compact Framework does not include a Proxy property for HttpWebRequest. Is there anyway, I can use proxy when reading from a HttpWebRequest? 回答1: No this is not currently possible to do it programatically from within your application. In windows proxy settings are configured in internet explorer. On the phone you can configure proxy settings from Edit Network inside Settings, if you do this and you are connected to a WiFi network it will make the connection go via the proxy

A ref or out argument must be an assignable variable

与世无争的帅哥 提交于 2020-01-10 04:12:08
问题 I'm coding an application which can make a reverse proxy connection but I have a problem! The error is here: new Form1.ProxyConfig() When I try to run it I get an error: " A ref or out argument must be an assignable variable " private void startToolStripMenuItem_Click(object sender, EventArgs e) { if (this.startToolStripMenuItem.Text == "Start") { var form2 = new Form2(); if (form2.ShowDialog() != DialogResult.OK) return; int num1 = Form1.ProxyListenerStart(ref new Form1.ProxyConfig() {

Test if URL is accessible from web browser i.e. make sure not blocked by Proxy server

只愿长相守 提交于 2020-01-10 01:45:08
问题 I am serving my website from mywebsite.com. I host images on flickr so all images are loaded in the user's browser via get requests to flickr. Many of my websites users access mywebsite.com from corporate networks, which block access to flickr.com. This means users get very annoying blank placeholders instead of the images. I get the same problem with the Facebook like button. This makes my site look very unattractive to such users. Is there a way I can run a client side script which will

.NET webbrowser control - Automate entry into pop up login form

a 夏天 提交于 2020-01-09 08:06:02
问题 Hopefully this won't be too painful... I am trying to access a website from a webbrowser control, I have tried two methods (well actually, lots more from googling with mixed results) that have the following problems: URL = "http://username:password@thewebsite.com" WebBrowser1.Navigate(URL) 1: This method results in a window security pop up, asking me to log in to the company proxy. I guess this is because I am using the username/password for the website and the URL navigation is attempting to

.NET webbrowser control - Automate entry into pop up login form

╄→гoц情女王★ 提交于 2020-01-09 08:05:12
问题 Hopefully this won't be too painful... I am trying to access a website from a webbrowser control, I have tried two methods (well actually, lots more from googling with mixed results) that have the following problems: URL = "http://username:password@thewebsite.com" WebBrowser1.Navigate(URL) 1: This method results in a window security pop up, asking me to log in to the company proxy. I guess this is because I am using the username/password for the website and the URL navigation is attempting to

Using a socks proxy with git for the http transport

安稳与你 提交于 2020-01-08 18:18:28
问题 How to make git use a socks proxy for HTTP transport? I succeed in configuring git with GIT_PROXY_COMMAND to use a socks proxy for GIT transport. Also, I have configured my .curlrc file to defined the socks proxy and I can fetch information directly with curl command like: curl http://git.kernel.org/pub/scm/git/git.git/info/refs?service=git-upload-pack But how to use a socks proxy with git to retrieve data using the HTTP transport protocol like: git clone http://git.kernel.org/pub/scm/git 回答1

how do i set proxy for chrome in python webdriver

醉酒当歌 提交于 2020-01-08 17:06:31
问题 I'm using this code: profile = webdriver.FirefoxProfile() profile.set_preference("network.proxy.type", 1) profile.set_preference("network.proxy.http", "proxy.server.address") profile.set_preference("network.proxy.http_port", "port_number") profile.update_preferences() driver = webdriver.Firefox(firefox_profile=profile) to set proxy for FF in python webdriver. This works for FF. How to set proxy like this in Chrome? I found this exmaple but is not very helpful. When i run the script nothing