Skip to content

Instantly share code, notes, and snippets.

@lemonlatte
Last active January 16, 2024 05:59
Show Gist options
  • Save lemonlatte/bc70534252b9c96de31cdece0ca82716 to your computer and use it in GitHub Desktop.
Save lemonlatte/bc70534252b9c96de31cdece0ca82716 to your computer and use it in GitHub Desktop.

Revisions

  1. lemonlatte renamed this gist Jan 16, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt → openssl.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # openssl s_client -connect example.com:443 -ign_eof
    openssl s_client -connect example.com:443 -ign_eof

    POST /your-endpoint HTTP/1.1
    Host: example.com
    Content-Type: application/json
    Content-Length: <LengthOfYourJSONData>

    {"key1":"value1", "key2":"value2"}
    {"key1":"value1", "key2":"value2"}
  2. lemonlatte created this gist Jan 16, 2024.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # openssl s_client -connect example.com:443 -ign_eof

    POST /your-endpoint HTTP/1.1
    Host: example.com
    Content-Type: application/json
    Content-Length: <LengthOfYourJSONData>

    {"key1":"value1", "key2":"value2"}