[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[OFF TOPIC] https with Perl
- To: linux-il(at-nospam)linux.org.il
- Subject: [OFF TOPIC] https with Perl
- From: Dan Kenigsberg <danken(at-nospam)cs.Technion.AC.IL>
- Date: Tue, 20 Nov 2001 19:57:26 +0200 (IST)
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
Hi List (excluding three of you whom I already asked personally).
I would like to mechanize my accesss to the internet site of my bank, using a
Perl script.
It took me a while, but I finally got the perl modules that are required to do
https. If I'm not mistake these are Crypt-SSLeay IO-Socket-SSL and Net_SSLeay.
For sites that require no identification, this is enough. But for places (like
my bank) where I have to authenticate myself, I get all kinds of error messages
(see below).
Does anyone know how I should introduce myslef to the server in https using
Perl? A pointer to a working example would be great, and so would an RTFM.
Dan.
Error message from one site:
HTTP/1.1 401 (Unauthorized) Authorization Required
Connection: close
Date: Tue, 20 Nov 2001 11:47:11 GMT
Server: Apache/1.3.14 Ben-SSL/1.42 (Unix) PHP/4.0.3pl1
WWW-Authenticate: xxx
Content-Type: text/html; charset=iso-8859-1
Client-Date: Tue, 20 Nov 2001 11:48:33 GMT
Client-Peer: 134.58.189.79:443
Client-SSL-Cert-Issuer: xxx
Client-SSL-Cert-Subject: xxx
Client-SSL-Cipher: DES-CBC3-SHA
Client-SSL-Warning: Peer certificate not verified
Title: 401 Authorization Required
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>401 Authorization Required</TITLE>
</HEAD><BODY>
<H1>Authorization Required</H1>
This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.<P>
<HR>
<ADDRESS>Apache/1.3.14 Ben-SSL/1.42 Server at <A HREF="mailto:xxx
</BODY></HTML>
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il