proxy-authentication

proxy authentication in node.js with module request

廉价感情. 提交于 2019-12-03 03:38:19
问题 I'm trying to use the module request in my node.js app, and I need to configure proxy settings with authentication. My settings are something like this: proxy:{ host:"proxy.foo.com", port:8080, user:"proxyuser", password:"123" } How can i set my proxy configuration when i make a request? Could someone give me an example? thanks 回答1: Here is an example of how to configure (https://github.com/mikeal/request/issues/894): //...some stuff to get my proxy config (credentials, host and port) var

proxy authentication in node.js with module request

ε祈祈猫儿з 提交于 2019-12-02 17:09:21
I'm trying to use the module request in my node.js app, and I need to configure proxy settings with authentication. My settings are something like this: proxy:{ host:"proxy.foo.com", port:8080, user:"proxyuser", password:"123" } How can i set my proxy configuration when i make a request? Could someone give me an example? thanks Here is an example of how to configure ( https://github.com/mikeal/request/issues/894 ): //...some stuff to get my proxy config (credentials, host and port) var proxyUrl = "http://" + user + ":" + password + "@" + host + ":" + port; var proxiedRequest = request.defaults

add web service reference from behind a proxy server

人盡茶涼 提交于 2019-11-28 21:40:06
I'm using vs2010. In a simple console app I try to add a service reference to http://***/service1.asmx , old asmx service. My computer is behind a proxy server, so i get an error : "The remote server returned an unexpected response: (407) Proxy Authentication Required." When im using wsdl tool i can not define proxy server port number and i get message that server, for examle 10.0.0.3:80, did not respond, but i need to specify 8080 port and don't know how. How could i create a reference? Take a look at the links below for specifying the proxy address and server port when adding a web reference

HTTP Spec: Proxy-Authorization and Authorization headers

放肆的年华 提交于 2019-11-28 15:31:45
So I'm trying to implement the following scenario: An application is protected by Basic Authentication. Let's say it is hosted on app.com An HTTP proxy, in front of the application, requires authentication as well. It is hosted on proxy.com The user must therefore provide credentials for both the proxy and the application in the same request, thus he has different username/password pairs: one pair to authenticate himself against the application, and another username/password pair to authenticate himself against the proxy. After reading the specs, I'm not really sure on how I should implement

The remote server returned an error: (407) Proxy Authentication Required

这一生的挚爱 提交于 2019-11-28 04:03:10
I'm getting this error when I call a web service: "The remote server returned an error: (407) Proxy Authentication Required". I get the general idea and I can get the code to work by adding myProxy.Credentials = NetworkCredential("user", "password", "domain"); or by using DefaultCredentials in code. My problem is that the call to the web service works in production without this. It seems like there is a non code solution involving Machine.config, but what is it? At the moment I can't get to the production box's machine.config file to see what that looks like. I tried updating my machine.config

add web service reference from behind a proxy server

我怕爱的太早我们不能终老 提交于 2019-11-27 14:05:31
问题 I'm using vs2010. In a simple console app I try to add a service reference to http://***/service1.asmx , old asmx service. My computer is behind a proxy server, so i get an error : "The remote server returned an unexpected response: (407) Proxy Authentication Required." When im using wsdl tool i can not define proxy server port number and i get message that server, for examle 10.0.0.3:80, did not respond, but i need to specify 8080 port and don't know how. How could i create a reference? 回答1:

Visual Studio Error: (407: Proxy Authentication Required)

喜夏-厌秋 提交于 2019-11-27 10:56:30
I am behind a corporate proxy server which requires credentials. I have been trying to connect to a TFS server (on tfspreview.com) with MS Visual Studio Pro 2012 for the last 2 hours with no success. Every attempt has been met with this error: The integrated browser works fine when I initiate it. It asks me for my proxy login credentials and once entered, off I go. So there is some different method of connection happening here. I have also navigated to the TFS server, and once in my project I clicked Open new instance of Visual Studio . The new instance fails with this message in the output:

HTTP Spec: Proxy-Authorization and Authorization headers

情到浓时终转凉″ 提交于 2019-11-27 09:15:47
问题 So I'm trying to implement the following scenario: An application is protected by Basic Authentication. Let's say it is hosted on app.com An HTTP proxy, in front of the application, requires authentication as well. It is hosted on proxy.com The user must therefore provide credentials for both the proxy and the application in the same request, thus he has different username/password pairs: one pair to authenticate himself against the application, and another username/password pair to

Apache HttpClient 4.1 - Proxy Authentication

社会主义新天地 提交于 2019-11-27 07:27:34
I've been trying to configure the user and password for proxy authentication from the configured properties while using Apaches HttpComponent's httpclient, but with no success. All examples I have found refer to methods and classes that are no longer available, such as HttpState and setProxyCredentials . So, can anyone give me an example of how to configure the proxy credentials? For Basic-Auth it looks like this: DefaultHttpClient httpclient = new DefaultHttpClient(); httpclient.getCredentialsProvider().setCredentials( new AuthScope("PROXY HOST", 8080), new UsernamePasswordCredentials(

How to set proxy authentication (user & password) using Python + Selenium

余生颓废 提交于 2019-11-26 22:55:11
I am using Firefox WebDriver in Python 2.7 with Selenium. My python program starts Firefox browser and visits different websites when I run the program. But, I need to set the proxy with authentication, so that when program visits any website, it will visit through the proxy server. There are some similar questions on SO. But, there is no specific solution for Selenium Firefox WebDriver of Python. Python Selenium Webdriver - Proxy Authentication Running selenium behind a proxy server Nuno André In addition to running Firefox with a profile which has the credentials saved. You can do it loading