Hi, I am trying to test a website, it is behind a username and password. If I try to use the documented way to log on, it is fine for the log on page, but if I try to go to another page afterwards, it just sends me back to the log on page.
var url = ‘https://mywebapp.com/subpage.aspx’;
var payload = JSON.stringify({
TxtUsername: ‘username’,
TxtPassword: ‘password’,
});
var params = {
headers: {
‘Content-Type’: ‘application/json’,
}, };
http.get(url, payload, params);
This results in a 302 status.
How do I log on to a website, then take that authenticated session and apply it to subsequent calls?
This seems a very standard thing to do but I can not see any examples or help articles on it
Thanks
Ad