Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Erro 401

When i try HttpWebRequest PUT, the app give error code 401, and i don´t understant why.

  1. 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. 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.

  3. 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

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