mitm/test_https_fixed.bat

34 lines
971 B
Batchfile

@echo off
echo ========================================
echo Testing Fixed HTTPS Proxy
echo ========================================
echo.
echo Testing HTTPS connections with the fixed certificate handling
echo.
echo Make sure to:
echo 1. Stop the current proxy (Ctrl+C)
echo 2. Restart it with: go run .
echo 3. Run this test
echo.
pause
echo Testing HTTPS connection to httpbin.org...
curl -v --proxy http://127.0.0.1:8080 --max-time 15 https://httpbin.org/ip
echo.
echo.
echo Testing HTTPS connection to www.baidu.com...
curl -v --proxy http://127.0.0.1:8080 --max-time 15 https://www.baidu.com
echo.
echo.
echo Testing HTTPS connection to www.google.com...
curl -v --proxy http://127.0.0.1:8080 --max-time 15 https://www.google.com
echo.
echo Test completed. Check the proxy console for detailed logs.
echo.
echo If you see certificate errors, the CA certificate needs to be installed.
echo Run as Administrator to install the CA certificate automatically.
pause