NetworkSteam or Sockets to fill out HTTP form??

R

Ray Ackley

Is it possible to use the NetworkSteam or Sockets to somehow fill out
a remote HTTP form? Can this be done with another class (or even a
3rd party utility?) I need to automate resetting the password on
about 250 server-based applications and the only way to do so is
through an HTTP form. Obviously every time time the password needs to
be changed I don't want to fill out 250 forms.

I understand how to use the NetworkSteam and Sockets classes, but how
would you fill out specific textboxes in the forms and then do a
submit?

Thanks,
Ray Ackley
 
O

omyek

If you don't need a GUI for this process, I'd recommend using the
HttpWebRequest/WebResponse classes.

These are the essential tools to mimic a web browser inside a C#
application.

For your particular problem, what you'd do is mimic a POST to the form
using those two classes. There are plenty of examples on the web, if
you do a quick little search.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top