mitm/test_connect.bat

32 lines
783 B
Batchfile

@echo off
echo ========================================
echo Manual CONNECT Test
echo ========================================
echo.
echo This will manually test the CONNECT method
echo to see if the proxy can handle HTTPS properly.
echo.
echo Make sure the MITM proxy is running first!
echo.
pause
echo Testing manual CONNECT request...
echo.
echo Sending CONNECT request using curl...
curl -v --proxy-header "Host: httpbin.org:443" --proxy http://127.0.0.1:8080 https://httpbin.org/ip 2>&1
echo.
echo.
echo Testing with different approach...
curl -v -x 127.0.0.1:8080 https://httpbin.org/ip 2>&1
echo.
echo.
echo Testing basic connectivity to proxy...
curl -v http://127.0.0.1:8080/proxy-health 2>&1
echo.
echo Test completed. Check the proxy logs for CONNECT requests.
pause