Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Authenticating to a web form that posts to a jsp.

Reply
Thread Tools

Authenticating to a web form that posts to a jsp.

 
 
Jeremy
Guest
Posts: n/a
 
      06-30-2004
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
 
Reply With Quote
 
 
 
 
Sherm Pendley
Guest
Posts: n/a
 
      06-30-2004
Jeremy wrote:

> 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--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
Authenticating to web service using https and client certificate jakecjacobson Python 0 06-23-2009 01:17 PM
Question about ASP.NET and Authenticating controls on a form jm ASP .Net 3 01-05-2004 01:41 AM
Authenticating using the web application session ID Stanimir Stamenkov Java 3 09-18-2003 09:35 AM
How do you figure out the LDAP://? ("Error authenticating. Error authenticating user. The specified domain either does not exist or could not be contacted") mrwoopey ASP .Net 3 06-30-2003 10:11 PM



Advertisments