views:

94

answers:

1

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.

+1  A: 

You need to send data to the web server to simulate a form submission.

There are a few questions that already address this:

http://stackoverflow.com/questions/726710/fake-a-form-submission-with-c-webclient

http://stackoverflow.com/questions/1273998/how-to-submit-http-form-using-c

Hopefully now you have a more clear idea of what you are looking for.

JYelton