Sample Header Ad - 728x90

Openssl command s_client always says 400 Bad Request

12 votes
4 answers
25123 views
I am trying to test a server that is working normal in web browser, with openssl s_client option, connecting it directly using openssl returns the 400 Bad Request: openssl s_client -servername example.com -connect example.com:443 -tls1 (some information about the certificate) GET / HTTP/1.1 (and the error occurs **immediately** - no time to include more headers like Host:) Important: I already tried to put the Host: header, the thing is that when i run GET, the error occur immediately leaving me no chance to include more headers. Replace example.com with my host...
Asked by Luciano Andress Martini (6926 rep)
Jun 13, 2017, 06:21 PM
Last activity: Oct 9, 2023, 07:34 PM