Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

stuck after POST request #83

Closed
wzrd-clss opened this Issue Feb 22, 2012 · 2 comments

Comments

Projects
None yet
2 participants

after i submit the post form on www.aa.com I get stuck on the page saying "please wait"
shouldn't node.io's request stop on the last page that I am redirected to?

var url = submitform.do?this=that;
var nextPage;
this.getHtml(url, function (err, $) {
$('meta[http-equiv=refresh]').each(function (j, a) {
nextPage = a.content.match(REgExp);//match a relative link in this attribute
});
url = "www.aa.com/" + nextPage;
this.getHtml(url, parsePage);
});

if there is a cleaner way to nest the requests please let me know

Contributor

chriso commented Mar 19, 2012

Unfortunately no, you'll need to parse the response to get the next url

@chriso chriso closed this Mar 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment