문제

I am trying to make a simple web crawler as a learning experience and I have hit a wall. I am able to set cookies, get cookies, and keep cookies over a session however I am now stuck when attempting to submit login information. Looking at the source of the website I see that the login form has a username and password field with a submit button who's action is a javascript call.

If it was a POST call I wouldn't have a problem but I can't figure out how to handle logging in using HttpWebRequest. Is it possible? If not how can I go about doing this? (Can I?)

도움이 되었습니까?

해결책

Just because it is a javascript call doesn't mean you can't do a POST. I would read the javascript and see what it does, then do something similar.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top