[11638] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

cgi authorization

daemon@ATHENA.MIT.EDU (Whyard, Matthew)
Tue Jun 20 13:46:44 2000

Date: Fri, 16 Jun 2000 05:52:39 -0400 (EDT)
Old-X-Envelope-From: www-talk-request@tux.w3.org  Fri Jun 16 05:52:37 2000
Content-return: allowed
From: "Whyard, Matthew" <Matthew.Whyard@siemenscomms.co.uk>
To: "'www-talk@w3.org'" <www-talk@w3.org>
Message-id: <5AC7D3F55147D311AA1700A0C99583ED01D103CD@beex03.sgcs.co.uk>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT
Old-X-Envelope-To: www-talk
Resent-From: gerald@w3.org
Resent-To: www-talk@w3.org

I am writing a Perl CGI script for checking the validity of URLs which
reference documents on an Intranet. The users authorize themselves by
entering a username/password in a standard browser prompt, in order to
access the Intranet.

When entering the URL in a form, on sumbitting it the CGI script uses
sockets to send an HTTP HEAD request to the server for the referenced
document. However, many of the documents require a 'different'
authorization, although the username and password already entered to access
the Intranet is usually fine to access the document. What is basically
happening is that the response received from the server is a "401
authorization required".... what I need is a way of passing the username
(simple) and password (how??!) already entered with the HEAD request for the
document.

I would really appreciate some help!
Matt


home help back first fref pref prev next nref lref last post