RE: The smallest minimal example of an HTTPS GET request with openssl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You would have to ignore some initial certificate info output but some variation on

 

echo "GET /version" | openssl s_client -connect test.example.com -crlf -ign_eof -quiet

 

would be as pure OpenSSL as you can get…

 

Andrew

 

From: openssl-users [mailto:openssl-users-bounces@xxxxxxxxxxx] On Behalf Of Ivan Medoedov
Sent: Saturday, March 30, 2019 08:03
To: openssl-users@xxxxxxxxxxx
Subject: [EXTERNAL] The smallest minimal example of an HTTPS GET request with openssl

 

Hello,

 

I've only managed to find this, but it seems to do too much for what I need:

 

 

Basically I need something like Go's http.Get("https://mysite.com/version") to just get a one line of text from the server.

 

I can't use libcurl, I have to use pure openssl.

 

Thanks

 

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux