GNU bug report logs - #81101
[PATCH] No longer raise error on HTTP 402 (Payment Required)

Previous Next

Package: emacs;

Reported by: Amin Bandali <bandali <at> gnu.org>

Date: Fri, 22 May 2026 14:58:02 UTC

Severity: normal

Tags: patch

Done: Amin Bandali <bandali <at> gnu.org>

To reply to this bug, email your comments to 81101 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#81101; Package emacs. (Fri, 22 May 2026 14:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Amin Bandali <bandali <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 22 May 2026 14:58:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Amin Bandali <bandali <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] No longer raise error on HTTP 402 (Payment Required)
Date: Fri, 22 May 2026 10:57:22 -0400
[Message part 1 (text/plain, inline)]
Tags: patch

url-http-parse-headers raises an error when encountering an HTTP 402
Payment Required status code, preventing further interaction with the
page e.g. in eww.

Instead of signalling an error using `error', it should just return t
to give the user a chance to interact with the page.

In GNU Emacs 31.0.60 (build 1, x86_64-pc-linux-gnu, cairo version
 1.18.4) of 2026-05-22 built on marita
Repository revision: 2936b36164ded60e0257f1ee872ff333bc4f4abd
Repository branch: emacs-31
Windowing system distributor 'The X.Org Foundation', version 11.0.12101016
System Description: Debian GNU/Linux 13 (trixie)

Configured using:
 'configure --without-gconf --without-gsettings --without-gpm
 --with-native-compilation --with-x-toolkit=no --without-xaw3d
 --with-mailutils'

[0001-No-longer-raise-error-on-HTTP-402-Payment-Required.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#81101; Package emacs. (Fri, 22 May 2026 15:09:05 GMT) Full text and rfc822 format available.

Message #8 received at 81101 <at> debbugs.gnu.org (full text, mbox):

From: Amin Bandali <bandali <at> gnu.org>
To: 81101 <at> debbugs.gnu.org
Subject: Re: [PATCH] No longer raise error on HTTP 402 (Payment Required)
Date: Fri, 22 May 2026 11:08:17 -0400
Sorry, forgot to add that this allows me to browse in eww again
websites like the Emacs wiki <https://www.emacswiki.org> that use the
'botcheck' anti-bot challenge which serves its human verification page
with a HTTP 402 status code.

I'd like to push this to the emacs-31 branch since it's a tiny change
but allows users to use more sites in eww, if the maintainers agree.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#81101; Package emacs. (Sat, 23 May 2026 16:48:03 GMT) Full text and rfc822 format available.

Message #11 received at 81101 <at> debbugs.gnu.org (full text, mbox):

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: Amin Bandali <bandali <at> gnu.org>, 81101 <at> debbugs.gnu.org
Subject: Re: bug#81101: [PATCH] No longer raise error on HTTP 402 (Payment
 Required)
Date: Sat, 23 May 2026 17:47:49 +0100
Amin Bandali [22/May 11:08am -04] wrote:
> Sorry, forgot to add that this allows me to browse in eww again
> websites like the Emacs wiki <https://www.emacswiki.org> that use the
> 'botcheck' anti-bot challenge which serves its human verification page
> with a HTTP 402 status code.
>
> I'd like to push this to the emacs-31 branch since it's a tiny change
> but allows users to use more sites in eww, if the maintainers agree.

I think this is okay, thanks.

-- 
Sean Whitton




Reply sent to Amin Bandali <bandali <at> gnu.org>:
You have taken responsibility. (Sat, 23 May 2026 17:30:03 GMT) Full text and rfc822 format available.

Notification sent to Amin Bandali <bandali <at> gnu.org>:
bug acknowledged by developer. (Sat, 23 May 2026 17:30:04 GMT) Full text and rfc822 format available.

Message #16 received at 81101-done <at> debbugs.gnu.org (full text, mbox):

From: Amin Bandali <bandali <at> gnu.org>
To: Sean Whitton <spwhitton <at> spwhitton.name>
Cc: 81101-done <at> debbugs.gnu.org
Subject: Re: bug#81101: [PATCH] No longer raise error on HTTP 402 (Payment
 Required)
Date: Sat, 23 May 2026 13:29:18 -0400
Sean Whitton wrote:

> Amin Bandali [22/May 11:08am -04] wrote:
>> Sorry, forgot to add that this allows me to browse in eww again
>> websites like the Emacs wiki <https://www.emacswiki.org> that use the
>> 'botcheck' anti-bot challenge which serves its human verification page
>> with a HTTP 402 status code.
>>
>> I'd like to push this to the emacs-31 branch since it's a tiny change
>> but allows users to use more sites in eww, if the maintainers agree.
>
> I think this is okay, thanks.

Thanks, applied to emacs-31.




This bug report was last modified 18 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.