-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
http
gdc@worldteam ~ $ proxy-curl9999 ip.sb -v
* Uses proxy env variable http_proxy == 'http://127.0.0.1:9999'
* Trying 127.0.0.1:9999...
* Connected to 127.0.0.1 (127.0.0.1) port 9999
* using HTTP/1.x
> GET http://ip.sb/ HTTP/1.1
> Host: ip.sb
> User-Agent: curl/8.14.1
> Accept: */*
> Proxy-Connection: Keep-Alive
>
* Request completely sent off
< HTTP/1.1 200 OK
< Connection: keep-alive
< Content-Length: 13
< Content-Type: text/plain
<
Hello World
* Connection #0 to host 127.0.0.1 left intact
https
gdc@worldteam ~ $ proxy-curl9999 https://ip.sb -v
* Uses proxy env variable https_proxy == 'http://127.0.0.1:9999'
* Trying 127.0.0.1:9999...
* CONNECT tunnel: HTTP/1.1 negotiated
* allocate connect buffer
* Establish HTTP proxy tunnel to ip.sb:443
> CONNECT ip.sb:443 HTTP/1.1
> Host: ip.sb:443
> User-Agent: curl/8.14.1
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 OK
< Connection: keep-alive
< Content-Length: 13
* Ignoring Content-Length in CONNECT 200 response
< Content-Type: text/plain
<
* CONNECT phase completed
* CONNECT tunnel established, response 200
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (OUT), TLS alert, record overflow (534):
* TLS connect error: error:0A0000C6:SSL routines::packet length too long
* closing connection #0
curl: (35) TLS connect error: error:0A0000C6:SSL routines::packet length too long
PS
What is proxy-curl9999:
#!/bin/zsh
export {http_proxy,https_proxy}=http://127.0.0.1:9999
curl $@
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels