Authenticating to a web form that posts to a jsp.

J

Jeremy

Hi,

I am trying to write a perl script that will automatically
authenticate to a web site so that I can download files from the site.
However, the site posts username/password information to a jsp, not a
cgi. I have read the LWP::UserAgent and LWP::Simple documentation,
and had no problem writing a script to authenticate to another site,
but I haven't had any success here. Any suggestions? If you're
interested, the authentication page page in question is:

https://www.affymetrix.com/site/login/login.affx

Any help would be greatly appreciated.

Thanks,

Jeremy
 
S

Sherm Pendley

Jeremy said:
However, the site posts username/password information to a jsp, not a
cgi.

That doesn't matter - a form is a form is a form. The client just formats
and sends the form data according to HTTP rules; it doesn't know or care
how the server deals with its end.
I have read the LWP::UserAgent and LWP::Simple documentation,
and had no problem writing a script to authenticate to another site,
but I haven't had any success here. Any suggestions?

The site you point to isn't using HTTP Authentication. There is a form in
the page you point to; you need to mimic what that form does by assigning
the user name and password to form inputs and submitting a get or post
request to the action URL.

If the site maintains state using cookies, you'll need to handle that as
well.

sherm--
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top