On Mon, Sep 27, 1999 at 01:48:03PM -0600, Craig Idler wrote:
>  I would like to use the OpenSSL library with an application to send
> http method requests to a ssl enabled web server. In addition, I must
> be able to interact with the server to provide user:password
> information.

Hi,

I assume you mean you are talking to a https server and wishes
to programmatically send username/password per http's 'basic
authentication'.

You can do this with M2Crypto, a Python interface to OpenSSL: 

/usr/local/home/ngps:$ python
Python 1.5.2 (#1, Sep  4 1999, 15:09:59)  [GCC 2.7.2.1] on freebsd2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> from M2Crypto import urllib2
>>> u=urllib2.urlopen('https://ngps:[EMAIL PROTECTED]:9443')
>>> for data in u.readlines():
...     print data
...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!-- Shamelessly cribbed from Apache's index.html. -->
<HTML>
 <HEAD>
   <TITLE>Test Page for M2Crypto https server</TITLE>
    </HEAD>
     <BODY>
       <H1>
         It Worked!
       </H1>
       The M2Crypto https server is successfully installed on this web site.
     </BODY>
</HTML>
>>>

BTW, the web server I'm testing against in the above example is
also built with M2Crypto.

http://www.post1.com/home/ngps

Cheers.
-- 
Ng Pheng Siong <[EMAIL PROTECTED]>

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

Reply via email to