Erro 401
When i try HttpWebRequest PUT, the app give error code 401, and i don´t understant why.
-
401.jpg 284 KB
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by rune on 09 Jan, 2017 01:43 PM
Hi,
What is the contents of the result? It's difficult to say much about why the HTTP 401 is returned seeing as the screenshot you sent only includes a "custom" javascript information pop-up.
Best,
Rune
2 Posted by Sérgio Cruz on 09 Jan, 2017 01:55 PM
Thank you for your answer.
I attached another example of the same error.
In the application a i have some CRUD, for example GET, POST and work fine, the problem are in the PUT or Delete Methods.
401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.
Support Staff 3 Posted by rune on 09 Jan, 2017 02:12 PM
Hi,
Alright thanks, how do you authenticate with this web service? I noticed that there's no authentication information in the URL, but can't see the requests headers in the attached screenshot -- perhaps the authentication cookie is HTTP only or somehow now transmitted with your request? You should be able to expand the request headers by clicking the button for that using the tool you sent a screenshot of (in the bottom left corner).
Best,
Rune