Questions tagged [http-status-code-401]

Similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource.

The request has not been applied because it lacks valid authentication credentials for the target resource.

The server generating a 401 response MUST send a WWW-Authenticate header field1 containing at least one challenge applicable to the target resource.

If the request included authentication credentials, then the 401 response indicates that authorization has been refused for those credentials. The user agent MAY repeat the request with a new or replaced Authorization header field2. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user agent SHOULD present the enclosed representation to the user, since it usually contains relevant diagnostic information.

See

1109 questions
0
votes
0 answers

Windows 2003 Server IIS App. Can only access with the IP address in the URL

I have a problem with an Web App implemented in Windows 2003 Server IIS. My machine is not in the domain. If I put the IP address, for example **http://192.168.1.210:5555/App** I'm asked for my domain credentials DOMAIN\USER1 and I login…
Jack Casas
  • 914
  • 18
  • 37
0
votes
1 answer

Using Fiddler with MVC - Getting 401s

I have fiddler installed and I'm running an MVC3 app through visual studio. Whenever I try to hit the MVC page with fiddler (localhost:28267) I get a 401. How can I determine what's causing this? The page loads fine through IE/VS.
RobVious
  • 12,685
  • 25
  • 99
  • 181
0
votes
2 answers

System.Net.WebException: The request failed with HTTP status 401: Unauthorized

Ok, so I have this .NET 1.1 application (written by someone way back) which is like a document repository and it worked fine in the past. I suddenly get this error when trying to search for items/documents: Page: /CPDEPforIT/SearchResults.aspx…
0
votes
1 answer

HTTP Error 401 at accessing Socialcast API

I receive 401 Unauthorized when trying to connect to Socialcast API (Demo). This is my code: ClientConnectionManager connectionManager = new BasicClientConnectionManager(); HttpClient client = new DefaultHttpClient(connectionManager); …
Jane Doe
  • 409
  • 3
  • 6
  • 18
0
votes
0 answers

customErrors 401 Capturing

I have been searching both Stack Overflow and various forums but I am having trouble understanding the process of capturing HTTP errors within ASP.net and IIS. At this time I have configured by web.config with customErrors and a redirect for 404 and…
JS1986
  • 1,920
  • 4
  • 29
  • 50
0
votes
1 answer

IIS web application Error 401.2 through IP address

I have a web application on my local computer on a domain that works on IIS 7.5. When accessing this web app through localhost it works fine, but if I try using my IP address instead, It asks for my credentials and when I don't enter them, I get…
Olivier
  • 309
  • 2
  • 8
  • 22
0
votes
2 answers

401 error showing while requesting access token in my twitter application for a website

i am developing my first twitter application.i managed to get request_token and i successfully redirected after the twitter login.But my problem is i cant get the access token it showing 401…
sajith
  • 2,564
  • 8
  • 39
  • 57
0
votes
1 answer

Unauthorized (401) when calling one localhost website from another

I have two websites set up on my local system running IIS 5.1 (on localhost). I am calling one website from another. I am working with ASP.NET, C# 2.0. public static String executeWebRequest(string url, Boolean esmRequest) { …
Arshya
  • 660
  • 3
  • 12
  • 30
0
votes
1 answer

in tweepy get_authorization_url() locally HTTP Error 401: Unauthorized but in the web works correctly

I am developing with google appengine sdk and python, I'm trying to incorporate my twiiter app import tweepy TWITTER_CONSUMER_KEY = 'XXXXXXXXXXX' TWITTER_CONSUMER_SECRET = 'xxxxxxxxxx' auth =…
0
votes
1 answer

Twitter API status update not working when updating to v1.1

I have a twitter application which sends tweets automatically for uses of our blog application whenever they post a new blog item. This application is now returning an error HTTP/1.1 401 Unauthorized Content-Type: application/json; charset=utf-8…
Rumpleteaser
  • 4,142
  • 6
  • 39
  • 52
0
votes
1 answer

Oracle application server HTTP error 401 authorization required axis2

I have a jsp application deployed on OAS server 10.1.2.0.2. The problem which I have is that only sometimes the application cannot invoked web service method. The error which I get is : 16:58:52,332 INFO HTTPSender:202 - Unable to sendViaPost to…
Jordan Borisov
  • 1,603
  • 6
  • 34
  • 69
0
votes
1 answer

Devise 401 Session new not working (multiple models, two work fine, one does not)

My application has three devise models: user, employer and auditor. I can create all three and log in with both user and employer, but Devise won't create a new session for auditor. Started POST "/auditors/sign_in" for 127.0.0.1 at 2012-10-05…
Michael Schmitz
  • 1,074
  • 2
  • 12
  • 27
0
votes
1 answer

ASMX web-service-call The request failed with HTTP status 401: Unauthorized

In an Episerver-project a call is made from a website on one server to an ASMX-webservice at another server. The user calling has all right set in IIS 7 to write, create and retrieve files from folders. The following error-message appears when this…
Anders Branderud
  • 1,878
  • 6
  • 29
  • 45
0
votes
1 answer

HTTP/1.1 status headers, when to use which?

Okay, I am working on an admin panel right now, so I came across stumbling, kind of. Form: http://pastebin.com/D8Dt6zP5 Processing Page: http://pastebin.com/FpXSziPM Now, onto the problem, I just used 403 Forbidden header when the expected values…
0
votes
1 answer

Google fusion tables gives me a 401 on 'show tables' query

I'm merely trying to 'SHOW TABLES' and I've tried to add the api key, the client id and secret and whatnot in the request URI and all i keep getting is "code": 401, "message": "Login Required" It works fine with any other SQL query except for…