I use tcpdump to capture http request among "yum" "wget" "apt-get".
# yum repolist
Hypertext Transfer Protocol
    GET http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock 
HTTP/1.1\r\n
    User-Agent: urlgrabber/3.10 yum/3.4.3\r\n
    Host: mirrorlist.centos.org\r\n
    Accept: */*\r\n
    Proxy-Connection: Keep-Alive\r\n
    \r\n
    [Full request URI: 
http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock]
    [HTTP request 1/1]
    [Response in frame: 8]

# wget 
http://archive.ubuntu.com/ubuntu/dists/xenial/restricted/i18n/Translation-zh
Hypertext Transfer Protocol
    GET 
http://archive.ubuntu.com/ubuntu/dists/xenial/restricted/i18n/Translation-zh 
HTTP/1.1\r\n
    User-Agent: Wget/1.17.1 (linux-gnu)\r\n
    Accept: */*\r\n
    Accept-Encoding: identity\r\n
    Host: archive.ubuntu.com\r\n
    Connection: Keep-Alive\r\n
    Proxy-Connection: Keep-Alive\r\n
    \r\n
    [Full request URI: 
http://archive.ubuntu.com/ubuntu/dists/xenial/restricted/i18n/Translation-zh]
    [HTTP request 1/1]
    [Response in frame: 1180]

# apt-get update
Hypertext Transfer Protocol
    GET 
http://archive.ubuntu.com/ubuntu/dists/xenial/restricted/i18n/Translation-zh 
HTTP/1.1\r\n
    Host: archive.ubuntu.com\r\n
    Cache-Control: max-age=0\r\n
    Accept: text/*\r\n
    User-Agent: Debian APT-HTTP/1.3 (1.2.10)\r\n
    \r\n
    [Full request URI: 
http://archive.ubuntu.com/ubuntu/dists/xenial/restricted/i18n/Translation-zh]
    [HTTP request 1/1]

Only "apt-get" doesn't have "Proxy-Connection: Keep-Alive", how can i
add "Proxy-Connection: Keep-Alive" to apt-get? I need to verify this.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1613193

Title:
  apt-get does't work with http_proxy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1613193/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to