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
2
votes
0 answers

Android connecting to soap web-service with digest authentification using ksoap

I am having problems to get the Authorization headers from a PHP soap web-service with DIGEST authentification. (PHP client works correctly with the web-service). I get error 401, but I cant find the header in the envelope. The headerIn field is…
2
votes
1 answer

401 Error in connecting HTTPS using Jsoup?

I want to connect https url using Jsoup I followed How to connect via HTTPS using Jsoup?? But now I am getting Exception in thread "main" org.jsoup.HttpStatusException: HTTP error fetching URL. Status=401, URL=myurl at…
abhig
  • 840
  • 2
  • 12
  • 22
2
votes
2 answers

How do I connect to router "panel" using C#

I'm trying to connect to my router "panel" (192.168.1.1) using a simple C# HTTP Web Request: var userName = "admin"; var passWord = "admin"; var encoding = new ASCIIEncoding(); var postData = "" + userName; postData += (":" + passWord); //I saw…
albeck
  • 510
  • 1
  • 7
  • 16
2
votes
1 answer

How to handle JavaScript dialog popup in WebView

I'm trying to figure out how i can handle Javascript pop's in a webview, I have a WebView that is viewing a admin screen of a device on my network. Similar to a router, It has a administration section that then prompts a dialog box with a Username…
Jaison Brooks
  • 5,816
  • 7
  • 43
  • 79
2
votes
3 answers

Upload file to google drive issue PHP

I have a problem while uploading a file to Google Drive, I can't upload file. Anyone can help, please answer. Hereunder is the error I got while uploading file: { "error": { "errors": [ { "domain": "global", "reason": "authError", …
2
votes
1 answer

How can I send a 403 Authentication header, as a cross domain request (CORS) , using a bookmarklet with JQuery?

So I've got a bookmarklet which executes javascript on other websites, which I want to trigger an 403 Authentication Required header, once the Cache button on it, is clicked. That way, a prompt will come up asking them to login. The problem is that…
desbest
  • 4,746
  • 11
  • 51
  • 84
2
votes
0 answers

401 Unauthorized when custom IHttpHandler tries to read from virtual directory

I have a custom IHttpHandler, specified in web.config as follows:
mo.
  • 4,165
  • 3
  • 34
  • 45
2
votes
1 answer

WCF service with TransportCredentialOnly security mode causing HTTP status Code 401 error on IIS7

I have just spent 2 days debugging the following error, so i tought i'll share my findings. The scenario is this: I have a WCF service hosted on IIS7. The service uses basicHttpBinding with Security Mode set to TransportCredentialOnly. The web site…
2
votes
1 answer

Oracle ADF Secured App Gives HTTP 401 Error

I am new to Oracle ADF Framework. I develop on JDeveloper 11g R2 with Weblogic 10.3.5.0. I developed an project like described in a Firebox training video on Youtube. You can download my project from here The video was about creating a custome login…
yyy
  • 437
  • 2
  • 9
  • 23
1
vote
0 answers

Intermittent Handshake Error

Background We currently have a SilverLight form that posts data to a second common form that multiple applications use, which then runs the need business logic to place the data into a database. We have several national and international offices…
RWL01
  • 466
  • 1
  • 5
  • 17
1
vote
0 answers

401 Unauthorized access for Github API (Rails)

I have generated the access_token by using the URL provided by GitHub. I am able to do all the GET operations on the api with the URL. What i really wish to do is the POST operation. I wish to create an issue from my Rails app. Every time i try to…
1
vote
1 answer

Rare and sporadic 401 Unauthorized error with ASMX / WCF web service using Windows Authentication

We have a hybrid WCF and ASMX web service currently being used on a decent sized project. Now, most of time everything works perfectly fine, however on rare occasions and seemingly randomly, the web service begins to block calls which returns a 401…
1
vote
2 answers

Error code 401 in Java program

I am trying to crawl a website using a java program. Until last night it was working perfect, but now the server returns error code 401. HOWEVER, I can still see the pages that I want through my web browsers. So, I don't know what is wrong? If the…
Afshin Moazami
  • 2,092
  • 5
  • 33
  • 55
1
vote
1 answer

Why is the google server returning error 401 when trying to get token?

i'm currently trying to develop an api for google reader and when i'm trying to get the token, the following error is being generated: System.Net.WebException: The remote server returned an error: (401) Unauthorized. at…
ict1991
  • 2,060
  • 5
  • 26
  • 34
1
vote
1 answer

SharePoint web service reference, WSS 3.0, Visual Studio 2010, Authentication

When trying to access SharePoint WSS 3.0 server using the web services API the software service we are developing will hang anywhere between 30-60 seconds when making any call (pick anyone of them, it doesn't matter) against the server for the first…