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
metallica1973 metallica1973 is offline
Registered User
Join Date: Dec 2007
Last Activity: 28 April 2017, 3:16 PM EDT
Location: Washington D.C
Posts: 216
Thanks: 29
Thanked 2 Times in 2 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 02: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 06:05 PM
Adding Broastcaste i.p manually kkarthik_kaja Solaris 2 02-28-2011 01:12 AM
Transpose multipe columns to rows and adding headers Gery Shell Programming and Scripting 8 03-23-2010 03:37 PM
Merging of files with different headers to make combined headers file marut_ashu Shell Programming and Scripting 1 08-07-2009 04:10 AM
cron-apt - adding X-headers karuna UNIX for Dummies Questions & Answers 1 04-03-2009 05:25 AM

All times are GMT -4. The time now is 05:05 AM.