From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jacobo Newsgroups: gmane.emacs.bugs Subject: bug#53941: 27.2; socks + tor dont work with https Date: Fri, 11 Feb 2022 12:09:52 +0100 Message-ID: <87pmntfym7.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26489"; mail-complaints-to="usenet@ciao.gmane.io" To: 53941@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 11 15:32:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIWyH-0006b8-6W for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Feb 2022 15:32:25 +0100 Original-Received: from localhost ([::1]:41690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIWyF-0000wo-Oi for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Feb 2022 09:32:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIWy4-0000wZ-SL for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 09:32:12 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36516) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIWxu-00060Y-0h for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 09:32:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIWxt-000782-UP for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 09:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jacobo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Feb 2022 14:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53941 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164458988927358 (code B ref -1); Fri, 11 Feb 2022 14:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Feb 2022 14:31:29 +0000 Original-Received: from localhost ([127.0.0.1]:58646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIWxL-00077A-SP for submit@debbugs.gnu.org; Fri, 11 Feb 2022 09:31:28 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:50892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIUI8-0006ku-SE for submit@debbugs.gnu.org; Fri, 11 Feb 2022 06:40:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIUI8-0003Em-Ld for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 06:40:44 -0500 Original-Received: from mx1.riseup.net ([198.252.153.129]:40512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIUI6-0005LF-HC for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 06:40:44 -0500 Original-Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4JwBWY1fcwzF6wX for ; Fri, 11 Feb 2022 03:40:41 -0800 (PST) X-Riseup-User-ID: 72825AEC4D3D62747A3BD9DBC2923A4AB12628366A5A452E59997002A98726D4 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4JwBWX4jshz5vMh for ; Fri, 11 Feb 2022 03:40:40 -0800 (PST) Received-SPF: pass client-ip=198.252.153.129; envelope-from=gnuhacker@member.fsf.org; helo=mx1.riseup.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 11 Feb 2022 09:31:26 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226671 Archived-At: Emacs can not resolve domains when it is https if you are using a socks proxy (socks.el) Emacs Config: #+begin_src elisp (setq socks-override-functions t) (setq url-gateway-method 'socks) ; same problem without this line in conf (require 'socks) (setq socks-noproxy '("localhost")) (setq socks-server '("TOR" "localhost" 9050 5)) #+end_src Tor is the socks proxy Im running tor. When I try: M-x eww RET gnu.org RET It works, load http://gnu.org (HTTP in plain) Also work with .onion domains in HTTP plain No problems with HTTP but When I try: M-x eww RET https://gnu.org RET Return an error: Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) Windowing system distributor 'The X.Org Foundation', version 11.0.12101002 System Description: GNU Guix System Configured using: 'configure CONFIG_SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash --prefix=/gnu/store/c4bb68f53mw3sjf6xbyr7ba83csgjdkk-emacs-27.2 --enable-fast-install --with-modules --with-cairo --disable-build-details' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER GMP