How can I make my C# app log in to a website that requires username/password authentication? The page uses Apache Struts, if it matters.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to send data to the web server to simulate a form submission.
There are a few questions that already address this:
Fake a form submission with C# WebClient
How to submit http form using C#
Hopefully now you have a more clear idea of what you are looking for.