From unknown Mon Aug 18 11:27:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42422: fix: url-https-proxy-connect - CONNECT with Proxy-Authorization header Resent-From: Satoshi Nakagawa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jul 2020 01:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42422 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42422@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159512304913713 (code B ref -1); Sun, 19 Jul 2020 01:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jul 2020 01:44:09 +0000 Received: from localhost ([127.0.0.1]:59665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jwyN5-0003Z4-DA for submit@debbugs.gnu.org; Sat, 18 Jul 2020 21:44:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:33360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jwxqi-0000Vl-JA for submit@debbugs.gnu.org; Sat, 18 Jul 2020 21:10:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jwxqi-0007Sh-CP for bug-gnu-emacs@gnu.org; Sat, 18 Jul 2020 21:10:40 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:42486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jwxqg-000274-RC for bug-gnu-emacs@gnu.org; Sat, 18 Jul 2020 21:10:40 -0400 Received: by mail-pg1-x544.google.com with SMTP id m22so8553696pgv.9 for ; Sat, 18 Jul 2020 18:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=oNL43guN10udaEd0u9T0vx3mAg5tdNHIRDW+OgQmRBM=; b=Rfx9CELCNxvFqB1brnZ0ALqG2w9AATIlMPnFqlvPPDFRzZEup3YFoHX+eKQemtPsyY iwWI9nuA2tJF7vqqiCDgrJ7llhuki9i9KzlvH3sK41NNKQMOznRaGIC+kG6SfWhm1rTV nqgl+nxrGLS0M6FuQO+6tExjQNz0Hbq5AWLJmtzkqRNWqblWQC2yDnFzPMY0/8PG7pcv HLUq6Ts1ic44XdcHOOvgPpxBCQ0jBbwMKGcTPQpagBclGhTWdhvisofP4mzMIqw/0waw wWwvjME0QLDcAVmL82I2lZs/54rHz1iffh4YgX92kDbucPOyeOkQ8kky0jXupX6uWU1M XMAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=oNL43guN10udaEd0u9T0vx3mAg5tdNHIRDW+OgQmRBM=; b=cbnxfi4SpOENRtYuZXWSfhcBgv161nvvqChGogXsKm/lCQ9O895PYWsm/0/JLUeQRH b2t6/0ncxtn4RGbRv3kETZXcD7paTHkXaiS3MMr2Y1UXKFVK9gFJbOWTO/cGsdccSiP7 g9jDf0zTDUDHYBbQAJHnRgQOOidZWufKB/WgAYgnFZ9aNugugMRkDxnOELzNLnijRWVE INKgyqQ2wLNCx78cQJylvix0c9JBYI7nHcHGKrQkyjt/yxf2HwObHIZUPmsWZwg4S6AM 0GCXU+8kpMLXDaLRW163jVgE8JMKdxaATjxmFkgznPD6db4OBl7S0uZgSuWKz5WpUMyP tzug== X-Gm-Message-State: AOAM532eW1LSpN5hgxCT/LvMuYm4lPoXCT8G6ixmhltHS6ZwIpY7rgpm OruuoMoq46qXmBvUD33TmIOj52SD X-Google-Smtp-Source: ABdhPJwp4GsrFOPQOigEahIH7cad/IrqzxNZJdncbt2gbkWxA0ZXza8nmfYvotelR8g9mHUhWxXnAw== X-Received: by 2002:a05:6a00:2294:: with SMTP id f20mr13992500pfe.126.1595121036508; Sat, 18 Jul 2020 18:10:36 -0700 (PDT) Received: from ?IPv6:2409:250:3b80:2e10:a531:ac11:328d:a1b4? ([2409:250:3b80:2e10:a531:ac11:328d:a1b4]) by smtp.gmail.com with ESMTPSA id g10sm11806758pfr.164.2020.07.18.18.10.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 18:10:36 -0700 (PDT) From: Satoshi Nakagawa Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Message-Id: Date: Sun, 19 Jul 2020 10:10:33 +0900 X-Mailer: Apple Mail (2.3608.120.23.2.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::544; envelope-from=ghnacker@gmail.com; helo=mail-pg1-x544.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sat, 18 Jul 2020 21:44:05 -0400 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.3 (--) commit 27b37d16418cd64321505e721b40b6b5d730ebdf (HEAD -> = fix/url-https-proxy-connect, fork/fix/url-https-proxy-connect) Author: Satoshi Nakagawa Date: Sun Jul 19 10:05:27 2020 +0900 fix: url-https-proxy-connect - CONNECT with Proxy-Authorization = header diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 669c24571f..9c1219d5c0 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el @@ -1406,6 +1406,10 @@ The return value of this function is the = retrieval buffer." (setq url-http-after-change-function = 'url-https-proxy-after-change-function) (process-send-string connection (format (concat "CONNECT %s:%d = HTTP/1.1\r\n" "Host: %s\r\n" + (let ((proxy-auth = (let ((url-basic-auth-storage + = 'url-http-proxy-basic-auth-storage)) + = (url-get-authentication url-http-proxy nil 'any nil)))) + (if proxy-auth = (concat "Proxy-Authorization: " proxy-auth "\r\n"))) "\r\n") (url-host url-current-object) (or (url-port = url-current-object) From unknown Mon Aug 18 11:27:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42422: fix: url-https-proxy-connect - CONNECT with Proxy-Authorization header Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jul 2020 19:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42422 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Satoshi Nakagawa Cc: 42422@debbugs.gnu.org Received: via spool by 42422-submit@debbugs.gnu.org id=B42422.159518597026142 (code B ref 42422); Sun, 19 Jul 2020 19:13:01 +0000 Received: (at 42422) by debbugs.gnu.org; 19 Jul 2020 19:12:50 +0000 Received: from localhost ([127.0.0.1]:33030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxEjx-0006na-QX for submit@debbugs.gnu.org; Sun, 19 Jul 2020 15:12:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxEjw-0006nK-EK for 42422@debbugs.gnu.org; Sun, 19 Jul 2020 15:12:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZZPRLS+qNQbm4NQNfXIWNHaldYd2uZu6ewphQIAwOBA=; b=GrvlvEoWWLhZiXCENxLBkRVR0s qFQhaEWAzjzkZWBZXW4huFVz0Zgdi+ZYLL2GMqtY9Pc8I++c6ZYoqgcKG4eagz4EIAFoxVVPjr6Lh wmC/ceL6hhVFQM4i7bwB5bUUYbd8UbBZODIt+JxvKslroCedrgTr9YEz30Bxd897SKlI=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxEjn-0003ra-3K; Sun, 19 Jul 2020 21:12:41 +0200 From: Lars Ingebrigtsen References: Date: Sun, 19 Jul 2020 21:12:37 +0200 In-Reply-To: (Satoshi Nakagawa's message of "Sun, 19 Jul 2020 10:10:33 +0900") Message-ID: <87blkbmi8q.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Satoshi Nakagawa writes: > fix: url-https-proxy-connect - CONNECT with Proxy-Authorization header Looks good to me; applied to Emacs 28.1. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) 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: -1.0 (-) Satoshi Nakagawa writes: > fix: url-https-proxy-connect - CONNECT with Proxy-Authorization header Looks good to me; applied to Emacs 28.1. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 19 15:12:58 2020 Received: (at control) by debbugs.gnu.org; 19 Jul 2020 19:12:58 +0000 Received: from localhost ([127.0.0.1]:33033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxEk6-0006nw-2D for submit@debbugs.gnu.org; Sun, 19 Jul 2020 15:12:58 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxEk4-0006ni-1F for control@debbugs.gnu.org; Sun, 19 Jul 2020 15:12:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nzlv6a8dzLofEB+CDL8FT0WVgpZ7xbFK6pRn8/e0AZ0=; b=nBVC7yeay7BexTABgwAyGZUzop /j6go8Tja7k3NJPS9JvvSRHWXEpa+BmRl1I5KjQi6VWEb+HXOj4QMUCnif1x7Cf035Ycilcbx5tYV 87w8npeTwuwJVQS/7W44DYTDxAaumqHBl5lTzEDsOYGAQPeT6YQC7seREzzce88vlhXE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxEjw-0003rp-6y for control@debbugs.gnu.org; Sun, 19 Jul 2020 21:12:50 +0200 Date: Sun, 19 Jul 2020 21:12:47 +0200 Message-Id: <87a6zvmi8g.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #42422 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 42422 fixed close 42422 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) tags 42422 fixed close 42422 28.1 quit