
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I'm setting a username and password using WebSetUserAuthBasic, but when I make a POST to a URL using WebCustomRequest requiring authentication, I get HTTP/1.1 401 Unauthorized.
Out Headers do not show Authentication Basic either, just:
POST /URL HTTP/1.1
Host: hostname.com
Connection: Keep-Alive
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent:
UA-CPU: x86
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Did you specify the "URL representing protection space for basic authentication" parameter - the 3rd one of the WebSetUserAuthBasic API call in WebUrl and WebCustomRequest?
It works for me with both when I set the protection space url.
Cheers,
Thomas

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi David,
after a 401 response the request is normally repeated with the Authorization header.
Does your 401 response contain a WWW-Authenticate header field?
Cheers,
Thomas

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Did you specify the "URL representing protection space for basic authentication" parameter - the 3rd one of the WebSetUserAuthBasic API call in WebUrl and WebCustomRequest?
It works for me with both when I set the protection space url.
Cheers,
Thomas

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content