When using Snoopy to post multiple pages in a long sequence, the class variable "_redirectdepth" is not reset after each request - thus, after enough redirects have been made across ANY number of requests (e.g. fetch 5 URLs, each of which redirects once, using the default max depth of 5 requests), all subsequent redirects will not be followed, instead causing Snoopy to report status 3xx Moved instead of 200 OK.
My fix was simply to add the following line to the beginning of fetch() and submit():
$this->_redirectdepth = 0;
Log in to post a comment.