Use cURL with SNI (Server Name Indication)

前端 未结 2 1686
轻奢々
轻奢々 2020-12-03 02:46

I am trying to use cURL to post to an API that just started using SNI (so they could host multiple ssl certs on 1 IP address).

My cURL stopped working as a result o

2条回答
  •  臣服心动
    2020-12-03 03:28

    Along with the required library and Curl version, the request should use resolve to send SNI in the curl:

    curl -vik --resolve example.com:443:198.18.110.10 https://example.com/
    

提交回复
热议问题