From unknown Thu Sep 18 21:16:45 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51875 <51875@debbugs.gnu.org> To: bug#51875 <51875@debbugs.gnu.org> Subject: Status: 28.0.60; HTTP request sent to HTTPS port when using SOCKS proxy Reply-To: bug#51875 <51875@debbugs.gnu.org> Date: Fri, 19 Sep 2025 04:16:45 +0000 retitle 51875 28.0.60; HTTP request sent to HTTPS port when using SOCKS pro= xy reassign 51875 emacs submitter 51875 a.r.draidi@redscript.org severity 51875 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 15 12:57:23 2021 Received: (at submit) by debbugs.gnu.org; 15 Nov 2021 17:57:23 +0000 Received: from localhost ([127.0.0.1]:56073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmgEM-0004EA-TS for submit@debbugs.gnu.org; Mon, 15 Nov 2021 12:57:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:54358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmf5W-0008J7-KB for submit@debbugs.gnu.org; Mon, 15 Nov 2021 11:44:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmf5U-0006II-Ie for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2021 11:44:08 -0500 Received: from rainycloud.ext.redscript.org ([103.105.48.212]:59184) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmf5R-00068l-Uw for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2021 11:44:08 -0500 Received: from Tsukiko.redscript.org (bba751597.alshamil.net.ae [92.97.159.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rainycloud.ext.redscript.org (Postfix) with ESMTPSA id 6E3941DB0 for ; Mon, 15 Nov 2021 16:43:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=dkimk1; t=1636994633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=EWa/oVx/XC1bPd7xiVJM3WA6eViEnVNSDkhTc1d/r/o=; b=rYVpMmdxwxbGd1WxNBByDX11VAWCOR5oQU5F0j/bHuQgZtohYwdUEmWcSv2QlBHT+hspr/ 4nAzZraLnftd1R1nUlEUDyO2qC3TFaPLFzF1Tb4zRRpngHvRNnGRX4hdY+LeS6oJiyxeeN pv4XGd3jR6i4yOZZV+WH8XfaSbKKkeM= From: a.r.draidi@redscript.org To: bug-gnu-emacs@gnu.org Subject: 28.0.60; HTTP request sent to HTTPS port when using SOCKS proxy Date: Mon, 15 Nov 2021 20:43:49 +0400 Message-ID: <87ilwtbc8q.fsf@redscript.org> MIME-Version: 1.0 Content-Type: text/plain ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=dkimk1; t=1636994633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=EWa/oVx/XC1bPd7xiVJM3WA6eViEnVNSDkhTc1d/r/o=; b=Y6naP7loZqMrjtH/IMZKdjoo6qBdmDkf/GrKOA//VzLDCGXrHiBpRRN6z0cPYKVNYC6Nrr puBcu5ccn0aCGQ8A2kKRPfiYtMAzZryxrerBrBMomJ9XNpLBYg8JBpsHvIlvAnIXIGRky/ yTer2BOmT+SROrB/IDbRlq0Gm3FaRq0= ARC-Seal: i=1; s=dkimk1; d=redscript.org; t=1636994633; a=rsa-sha256; cv=none; b=F3aIHEnTrZeoeVuO97kakvo776T+6KnqBP5ojlX2yppEXl6puvpixzxnZF2hf3AHODNyui 8zf+SUwatPRKUpHrnq5XfgrAJIx/Jlijt9iSilOBcdgIR1/afbsfiqT6zTHYot0gQ+TZyV FlnLliBCEYcj6CGwwnkKhyEYo7J4BPQ= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=a@redscript.org smtp.mailfrom=a.r.draidi@redscript.org Received-SPF: pass client-ip=103.105.48.212; envelope-from=a.r.draidi@redscript.org; helo=rainycloud.ext.redscript.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 15 Nov 2021 12:57:21 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Seems like Emacs is sending HTTP requests to HTTPS ports when a socks proxy is configured. I tested this several times and got the same result. Good scenario: - emacs -Q - M-x eww RET anything RET - Result: Shows DDG search results Bad scenario: - emacs -Q - Eval these lines in the scratch buffer or add them to init.el after replacing the SOCKS5 proxy with your own: ``` (customize-set-variable 'socks-override-functions t) (customize-set-variable 'socks-noproxy '("127.0.0.1")) (customize-set-variable 'socks-server '("Default server" "172.16.211.16" 1080 5)) (customize-set-variable 'url-gateway-method 'socks) (require 'socks) ``` - M-x eww RET something else RET - Shows: ``` 400 Bad Request The plain HTTP request was sent to HTTPS port ------------------------------------------------------- nginx ``` In GNU Emacs 28.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) Windowing system distributor 'System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure CONFIG_SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash --prefix=/gnu/store/lgxd5ccj88lk5x6kpfwjr4s32lpaky8c-emacs-pgtk-native-comp-28.0.60-213.eb9197b --enable-fast-install --with-native-compilation --with-pgtk --with-xwidgets --with-modules --with-cairo --disable-build-details' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XIM XWIDGETS GTK3 ZLIB Important settings: value of $EMACSLOADPATH: /gnu/store/lgxd5ccj88lk5x6kpfwjr4s32lpaky8c-emacs-pgtk-native-comp-28.0.60-213.eb9197b/share/emacs/28.0.60/lisp value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail socks cus-edit pp cus-start cus-load jka-compr cl-extra help-mode gnutls network-stream url-http mail-parse rfc2231 url-gw nsm rmc url-cache url-auth format-spec eww xdg url-queue thingatpt shr kinsoku svg xml dom browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap puny mm-url gnus nnheader gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map rfc2047 rfc2045 ietf-drums text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mail-utils wid-edit mm-util mail-prsvr cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit pgtk multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 240947 9817) (symbols 48 10976 0) (strings 32 59931 3030) (string-bytes 1 3275385) (vectors 16 20000) (vector-slots 8 406352 23530) (floats 8 66 85) (intervals 56 4607 524) (buffers 992 13))