- Joined
- Feb 10, 2011
- Messages
- 413
- Reaction score
- 99
I am trying to make a post to a webpage. The post goes well and there comes a 302 responds. Then the page should redirect but that gets cancelled according to the google console and the call stops. I need it to redirect because I need the info of that page.
The code I am using is this one:
Anybody an idea how to solve this, I have tried for several hours now but I cannot find the solution.
The code I am using is this one:
Code:
var url = "http://eetlijst.nl/login.php";
var params = {login: "username", pass: "password"};
var responds;
responds = jQuery.ajax({
type: "POST",
url: url,
data: params,
crossDomain: true,
complete: function(jqXHR, textStatus) {
console.log(jqXHR.getAllResponseHeaders());
}
});

