Form Post - Session Values

G

Guest

We currently use an online Task Management System that uses a login form.
This System has some reports that can be ran, however: you must do them
individually and also log-in to the system. This is a process we would like
to automate.

Is it possible to emulate the login process? We would like an application
to automatcially log into the site, gather the session header, and insert
that into the next page so that we can run the reports.

How would I go about having the application automatcially log in and grab
the session information? I am not sure where exactly to start.

Thanks for any help
Andy
 
G

Guest

The site we would like to automate login is ASP classic.

Not sure this matters: but our app will be a C# .dll that will reside in
Scheduled Tasks and ran once a morning.
 
J

Joerg Jooss

Andy said:
We currently use an online Task Management System that uses a login
form. This System has some reports that can be ran, however: you
must do them individually and also log-in to the system. This is a
process we would like to automate.

Is it possible to emulate the login process? We would like an
application to automatcially log into the site, gather the session
header, and insert that into the next page so that we can run the
reports.

This is possible using System.Net.HttpWebRequest.
How would I go about having the application automatcially log in and
grab the session information? I am not sure where exactly to start.

It depends how the web application tracks login state. If it uses
cookies, create a CookieContainer object and set it to all of your
HttpWebRequests you send. Have a look at groups.google.com for other
posts on this topic.

Cheers,
 

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