Why don't APT connect to HTTP proxy using HTTP CONNECT
?
I want to use APT with an HTTP proxy, so I've exported the http_proxy
variable with the address of my server http://10.10.10.10
.
Now, my server expects a HTTP CONNECT
request afterwards it starts proxying TCP traffic to the specified host.
However, Wireshark shows that APT doesn't issue HTTP CONNECT
requests, but instead sends HTTP GET
requests directly to the proxy server.
Why doesn't APT send HTTP CONNECT
requests? Isn't that how a HTTP proxy is supposed to work?
CONNECT
s are only necessary for HTTPS. Half-decent proxy servers should be able to handle GETs for plain HTTP.CONNECT
s? Never heard that before. Are you saying thatCONNECT
cannot be used with HTTP, but only HTTPS?GET
with the supplied credentials, instead of using CONNECT.)