[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`url-retrieve' for https behind proxy: 400 bad request

From: Andrew Savonichev
Subject: `url-retrieve' for https behind proxy: 400 bad request
Date: Tue, 8 Nov 2016 09:18:07 +0300


I use GNU/Emacs behind the http proxy with no user authorization, and
seems `url-retrieve' does not work correctly with the proxy-server -
error "400 Bad Request" for any https url.

Environment variables (http_proxy and https_proxy) are correctly set
and other tools except the emacs work fine: tried curl and wget.

I've compared url-retrieve and curl requests to the proxy-server
and there is a difference:
curl does CONNECT followed by GET, while url-retrieve use a direct
GET request.

curl (works fine):
  User-Agent: curl/7.29.0
  Proxy-Connection: Keep-Alive

  GET / HTTP/1.1
  User-Agent: curl/7.29.0
  Accept: */*

url-retrieve (error 400):
  GET HTTP/1.1
  MIME-Version: 1.0
  Extension: Security/Digest Security/SSL
  Accept-encoding: gzip
  Accept: */*
  User-Agent: URL/Emacs

I've tried it with the GNU/Emacs 25.1 and 24.3.1 releases (with -Q
command line option).

Is it a bug? Any ideas  would be appreciated.

    - Andrew

reply via email to

[Prev in Thread] Current Thread [Next in Thread]