in reply to Re: Openssl & GET
in thread Openssl & GET

Tried the shell command, but all I get back is the openssl stuff--no html from the web page. The LWP reports 500 ("Internal Server Error"), but their (Java app) logs say they return a 200 code, BUT they do see some 2-6 minute latency in their app's DB access. And no, the Java guys haven't produced their bug reports. They're web devilopers--they tell you "it's out on the web, everyone knows it." Thanks again,

Replies are listed 'Best First'.
Re^3: Openssl & GET
by Aristotle (Chancellor) on Apr 29, 2003 at 00:26 UTC
    I forgot you need to add -quiet for openssl(1) to actually print back the server's responses outside the SSL handshake, sorry.
    echo -e "GET / HTTP/1.1\r\nHost: somehost.domain.com\r\n\r" \ | /usr/local/ssl/bin/openssl s_client -quiet -connect somehost.domain. +com:443

    If the server is at all working, this should result in a HTTP response being echoed to you.

    One question: are you sure your LWP can do SSL transfers? You need to install extra modules for that purpose, it doesn't come with the ability out of the box. The LWP distribution has a README.SSL you might want to look into. To be honest your account of their "evidence" is not inspiring much respect for your Java crew's knowledge with me.

    Makeshifts last the longest.

      The "-quiet" works fine. Thank you, you have been most helpful.