Questions tagged [http-status-code-407]

The HTTP response status code 407 Proxy Authentication Required

This code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy. The proxy must return a Proxy-Authenticate header field containing a challenge applicable to the proxy for the requested resource. The client may repeat the request with a suitable Proxy-Authorization header field. HTTP access authentication is explained in "HTTP Authentication: Basic and Digest Access Authentication".

Related tags

See also RFC2616.

54 questions
78
votes
7 answers

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

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",…
48
votes
7 answers

Proxy Basic Authentication in C#: HTTP 407 error

I am working with a proxy that requires authentication, i.e., in a browser if I try to open a page it will immediately ask for credentials. I supplied same credentials in my program but it fails with HTTP 407 error. Here is my code: HttpWebRequest…
rplusg
  • 3,418
  • 6
  • 34
  • 49
32
votes
6 answers

Configuring Fiddler to use company network's proxy?

I'm trying to get Fiddler to work with my company's proxy. Every external request is returning 407. So far I've tried adding oSession.oRequest["Proxy-Authorization"] = "YOURCREDENTIALS"; to the customized rules where I used my USERNAME:PASSWORD in…
15
votes
5 answers

WCF Client - 407 Proxy Authentication Required while running webservice

I've created simple WinForms app that uses free webservice http://www.webservicemart.com/uszip.asmx. But this app fails to use service operation with error: The remote server returned an unexpected response: (407) Proxy Authentication Required (The…
8
votes
3 answers

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

I use this code with .NET 3.5 and receive error "The remote server returned an error: (407) Proxy Authentication Required." using (WebClient client = new WebClient()) { WebRequest.DefaultWebProxy.Credentials =…
8
votes
8 answers

407 Authentication required - no challenge sent

Update: If you've just arrived at this question, the general gist is that I'm trying to make a HttpWebRequest via a proxy, and I'm getting a 407 from our strange proxy server. IE,Firefox,Chrome all manage to negotiate the proxy sucessfully, as do…
Chris S
  • 64,770
  • 52
  • 221
  • 239
7
votes
3 answers

HTTP 407 Proxy Authentication Required while accessing Amazon S3

I have tried everything but I cant seem to fix this issue that is happening for only one client behind a corporate proxy/firewall. Our Silverlight application connects to Amazon S3 for downloading/Uploading some documents. On one client and one…
6
votes
2 answers

How can I run an Azure powershell cmdlet through a proxy server with credentials?

When I run the following Powershell cmdlet (from the Azure Management Tools Snapin): get-osversions -subscriptionId **** -certificate (get-item cert:\CurrentUser\MY\******) I get the following error message: Get-OSVersions : The remote server…
4
votes
1 answer

Test Proxy to see if it requires Authentication

I have a list of proxies that I want to loop through and test to make sure they are working and also test to make sure that they do not require a username and password. However, the test does not seem to be working correctly. For example I have one…
jkruer01
  • 2,175
  • 4
  • 32
  • 57
4
votes
1 answer

Handling http error 407(Proxy Authentication Required) in jquery

In the following javascript, I would like to handle errors based on http error code. It is possible to handle all other types of http errors but not 407, when server sends the status as 407, jqXHR.status shows as "0" not "407". Any idea why it not…
Vallabha Vamaravelli
  • 1,153
  • 1
  • 9
  • 15
4
votes
1 answer

407 unable to tunnel through proxy

We have one webservice which invokes third party webservice. To test this implementation we have different environments. Local Developer Machine: When we run the application, everything works fine and our webservice is able to hit the third party…
CuriousMind
  • 3,143
  • 3
  • 29
  • 54
4
votes
2 answers

HTTP Response Code for Proxy Authorization Failure

What should be the HTTP response code for Proxy Authorization failure? I know that 407 is the response code for requesting Proxy Authorization. But, once the clients sends the authentication info to the proxy and if it is incorrect, the what should…
4
votes
2 answers

HttpClient 4.2.2 and proxy with username/password

I have a problem with HttpClient 4.2.2 and proxy with username/password. HttpClient works in this way: List item Send request without proxy stuff (however I set proxy parameters for each request) Get response from Squid with 407 error Send request…
Lazy
  • 267
  • 1
  • 8
  • 18
3
votes
0 answers

Fetch API handle error 407 is not same between Chrome and Firefox

When I call API and it returns error 407, I would like to handle this case but I very surprised when I found that response from Chrome and Firefox is not the same. fetch('https://xxxx.xxx/xxx', { method: 'GET', headers: { 'Content-Type':…
GotzJi
  • 63
  • 6
2
votes
0 answers

Is it possible to add the Proxy-Server plus Port to the HTTP Request Header (error: statusCode=407)

Problem: I try to send an HTTP Request to get an access token (Method: POST). It leads to the error: tunneling socket could not be established, statusCode=407 For the request I'm using die Windows Application Postman. What I have done so far? I…
1
2 3 4