From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D75BC385740E; Thu, 11 Aug 2022 09:49:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D75BC385740E From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug debuginfod/29469] Add /buildid/BUILDID/header WEBAPI Date: Thu, 11 Aug 2022 09:49:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: debuginfod X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2022 09:49:38 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29469 --- Comment #3 from Mark Wielaard --- (In reply to Martin Liska from comment #2) > (In reply to Mark Wielaard from comment #1) > > Do you mean support for an HTTP HEAD (instead of GET) request? >=20 > Yep, that's what I'm seeking for :) >=20 > > Or do you actually want/need a new URL ending in /header to get the > > information? >=20 > $ wget --method=3DHEAD > https://debuginfod.opensuse.org/buildid/ > 929d83693f513cefd1c38e5075f2b10b12a9f322/debuginfo > Spider mode enabled. Check if remote file exists. > --2022-08-11 11:16:46--=20 > https://debuginfod.opensuse.org/buildid/ > 929d83693f513cefd1c38e5075f2b10b12a9f322/debuginfo > Resolving debuginfod.opensuse.org (debuginfod.opensuse.org)... > 91.193.113.65, 2a07:de40:401::65 > Connecting to debuginfod.opensuse.org > (debuginfod.opensuse.org)|91.193.113.65|:443... connected. > HTTP request sent, awaiting response... 400 Bad Request > Remote file does not exist -- broken link!!! Right, that is this code: if (string(method) !=3D "GET") throw reportable_exception(400, "we support GET only"); in debuginfod.cxx (handler_cb). I think if you just change that to also allow "HEAD" it will just work. But= it does mean the debuginfod server might do more work than strictly necessary.= But libmicrohttpd should just send the headers and ignore the body content. (Sorry, haven't actually tested any of this, I am currently on a desert isl= and, ehe mountain, with spotty interweb access and compute resources) --=20 You are receiving this mail because: You are on the CC list for the bug.=