Unix/Linux Go Back    

Security Discuss UNIX and Linux computer and network security, cyber security, cyber attacks, IT security, and more.

Openssl s_client Adding Headers Manually


Thread Tools Search this Thread Display Modes
Old Unix and Linux 11-19-2014   -   Original Discussion by metallica1973
metallica1973's Unix or Linux Image
metallica1973 metallica1973 is offline
Registered User
Join Date: Dec 2007
Last Activity: 7 June 2017, 3:38 PM EDT
Location: Washington D.C
Posts: 219
Thanks: 31
Thanked 3 Times in 3 Posts
Openssl s_client Adding Headers Manually

Daily stupid question:

How can I successfully add/pass HTTP options to openssl? I am trying to get a response from our test web server /vpn/index.html for testing an application. I can successfully get it doing it the manually way like:

openssl s_client -connect
 blah blah blah
 PSK identity: None
 PSK identity hint: None
 Start Time: 1416438768
 Timeout   : 300 (sec)
 Verify return code: 0 (ok)
GET /vpn/index.html HTTP/1.0\r\nHost:\r\nUser-Agent: Mozilla/5.0\r\n\r\n\n
blah blah blah
            <div id="logonbelt-bottomshadow">
<DIV id=scriptArea></DIV>
<script type="text/javascript" language="javascript">

I need the output via

echo -ne "GET /vpn/index.html HTTP/1.0\r\nHost:\r\nUser-Agent: Mozilla/5.0\r\n\r\n\n" | openssl s_client -connect

so I dont have to do it the manual way like above but for some odd reason my one liner displays nothing. ????

Last edited by metallica1973; 11-20-2014 at 03:06 PM..
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Issue w/manually installing OpenSSL 1.0.1j caspersgrin Red Hat 0 10-17-2014 07:05 PM
Adding Broastcaste i.p manually kkarthik_kaja Solaris 2 02-28-2011 02:12 AM
Transpose multipe columns to rows and adding headers Gery Shell Programming and Scripting 8 03-23-2010 04:37 PM
Merging of files with different headers to make combined headers file marut_ashu Shell Programming and Scripting 1 08-07-2009 05:10 AM
cron-apt - adding X-headers karuna UNIX for Dummies Questions & Answers 1 04-03-2009 06:25 AM

All times are GMT -4. The time now is 01:59 PM.