Say Andrew,
Did you ever get this problem figured out?  I seem to be having a similar situation.  I try to do

this negotiation which works just fine from netscape, but somehow, though for the first few steps
the session ID stays the same, at one point I get a new session Id back to LWP and the content is
the original password prompt page again.  Any feedback is appreciated.


One of the things I was wondering was whether I needed to somehow use the "proxy" method or some
proxy specific facility to make this go.  I really want to do things step by step, but if there's
a trick that makes it work for now, it would be better than nothing.  I read the two replies on the
group too.  Nothing helps so far.  Again, any response is welcome.


Sincerely, Xeno
-- 
Xeno Campanoli (erstwhile Xeno Whitenack, and Rick Burgess)
Email:  [EMAIL PROTECTED]     (Web pages:  http://www.aa.net/~xeno)

"...That side was made for you and me..." - Woody Guthrie
 


http://marc.theaimsgroup.com/?l=openssl-users&m=98302390820605&w=2
-- 
Xeno Campanoli - Aspiring and self-appointed member of the Diligentsia,
        generally eschewing Dilatorian digressions and Obnoxioso expenditures.
Email:  [EMAIL PROTECTED] (home home page:  http://www.aa.net/~xeno
Title: MARC: msg 'Crypt::SSLeay - session support?'
[prev in list] [next in list] [prev in thread] [next in thread] 

List:     openssl-users
Subject:  Crypt::SSLeay - session support?
From:     Andrew Leppard <[EMAIL PROTECTED]>
Date:     2001-02-24 14:13:31
[Download message RAW]

I think I've missed something *really* basic with this:

	Im trying to access a secure web site using Crypt::SSLeay and
it connects ok and Im trying to authenticate myself to this web site -
which I can do using a POST operation passing my username/password.
So far so good.

	But then all subsequent requests I make, the server thinks I
haven't entered my username/password. Now the doc pages of
LWP Agent say that each request/response pair is independant of
past/previous ones - so how can I log onto a secure web site and access
its information - dont i need some sort of session??? 

	My code is pretty simple so far:

use HTTP::Request;
use LWP;

my $ua = LWP::UserAgent->new;

#
# Post my username/password to the website via its form. Now I know this works on \
some level # because if i enter the password wrong it says something along the lines \
of # access denied. If I get it right the response is a 302 (Moved) and redirects me
# to some web page - which I can't access cause it asks me for my password again!
#

my $res = $ua->request(POST 'https://www.somesecurewebsite.com/login.html',
		       [ username => 'my user name',
			 password => 'my password']);

#
# Now assuming the above post worked (which it kind of does) - id now like to access
# one of the web pages on the secure site under my login above....
#

my $res = $ua->request(GET \
'https://www.somesecurewebsite.com/YouCanViewThisIfYouLogIn.html');

#
# But the secure web server just thinks Im not logged in and returns a web page here \
saying 'please log in' #

	any help appreciated!! thanks,

bye
Andrew Leppard
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]


[prev in list] [next in list] [prev in thread] [next in thread] 

  Log in / Log out
  About MARC
  We're Hiring!
  Want to add a list? Tell us about it.
  The AIMS Group


Reply via email to