I'm trying to use LinkChecker on ASP.Net MVC3 web application I've built that use ASP.Net forms authentication. I have configured the LinkChecker config file to correctly log in to the login page:
When I run LinkChecker, I am prompted for the password, and using Fiddler, I see that the login is successful and that the two "Set-Cookie" headers required by ASP.Net forms authentication are returned to the browser:
Since the ASP.Net forms authentication cookies are not included, my web app redirects back to the login page, so LinkChecker cannot access any of the URLs that require authentication.
I am surprised that there are no issues logged for ASP.Net forms authentication and these cookie values, so I wonder if I am misunderstanding something basic. Unfortunately, since I do not (yet) know Python, I don't want to try to digging into the code myself.
I'm trying to use LinkChecker on ASP.Net MVC3 web application I've built that use ASP.Net forms authentication. I have configured the LinkChecker config file to correctly log in to the login page:
When I run LinkChecker, I am prompted for the password, and using Fiddler, I see that the login is successful and that the two "Set-Cookie" headers required by ASP.Net forms authentication are returned to the browser:
The login page also sends a 302 redirect to a new URL which, via Fiddler, I can see is requested with the above HTTP cookies and succeeds.
It appears that the initial authentication above is done via the Twill library, because in Fiddler I see the user agent looks like IE6:
However subsequent LinkChecker requests send the user agent as:
And the subsequent requests do not include the two HTTP cookies above. In fact, the only cookies sent are:
Since the ASP.Net forms authentication cookies are not included, my web app redirects back to the login page, so LinkChecker cannot access any of the URLs that require authentication.
I am surprised that there are no issues logged for ASP.Net forms authentication and these cookie values, so I wonder if I am misunderstanding something basic. Unfortunately, since I do not (yet) know Python, I don't want to try to digging into the code myself.