NetworkSteam or Sockets to fill out HTTP form??

  • Thread starter Thread starter Ray Ackley
  • Start date Start date
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
 
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.
 
Back
Top