acl/lib_acl_cpp/samples/ssl/https_request/t.sh

19 lines
767 B
Bash
Raw Normal View History

2020-07-02 15:44:44 +08:00
#!/bin/sh
os=$(echo `uname -s`)
if [ $os == 'Darwin' ]; then
./https_request -f "../libmbedtls_all.dylib" -s www.sina.com.cn:443 -S
echo ""
./https_request -f "../libmbedtls_all.dylib" -s www.baidu.com:443 -S
echo ""
./https_request -f "../libmbedtls_all.dylib" -s echo.websocket.org:443 -S
else
./https_request -f "../libmbedcrypto.so;../libmbedx509.so;../libmbedtls.so" -s www.sina.com.cn:443 -S
echo ""
./https_request -f "../libmbedcrypto.so;../libmbedx509.so;../libmbedtls.so" -s www.baidu.com:443 -S
echo ""
./https_request -f "../libmbedcrypto.so;../libmbedx509.so;../libmbedtls.so" -s echo.websocket.org:443 -S
fi
2023-09-03 21:20:35 +08:00
# ./https_request -f "/usr/local/lib64/libcrypto.so;/usr/local/lib64/libssl.so" -s www.baidu.com:443 -H www.baidu.com -U / -n 1 -S