From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (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) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id D0BB87159B for ; Fri, 11 Jun 2021 09:28:18 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id BC226E1E8 for ; Fri, 11 Jun 2021 09:27:48 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (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) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 295EDE1CF for ; Fri, 11 Jun 2021 09:27:47 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id E45CC42357 for ; Fri, 11 Jun 2021 09:27:46 +0200 (CEST) Date: Fri, 11 Jun 2021 09:27:44 +0200 From: Dominic =?iso-8859-1?Q?J=E4ger?= To: Proxmox VE development discussion Message-ID: <20210611072744.GA61335@mala.proxmox.com> References: <20210517080318.51405-1-l.stechauner@proxmox.com> <20210517080318.51405-2-l.stechauner@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210517080318.51405-2-l.stechauner@proxmox.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-SPAM-LEVEL: Spam detection results: 0 AWL 1.468 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com] Subject: Re: [pve-devel] [PATCH v6 manager 1/7] api: nodes: add query_url_metadata method X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2021 07:28:18 -0000 On Mon, May 17, 2021 at 10:03:12AM +0200, Lorenz Stechauner wrote: > + > + my $size = $res->header("Content-Length"); > + my $disposition = $res->header("Content-Disposition"); When I use the Proxmox VE 6.4 image from the website > pvesh get nodes/dev/query-url-metadata --url https://www.proxmox.com/en/downloads\?task\=callelement\&format\=raw\&item_id\=589\&element\=f85c494b-2b32-4109-b8c1-083cca2b7db6\&method\=download\&args\[0\]\=b9d30b3515e7a12dff5619ff1e1843be then I get as filename > "proxmox-ve_6.4-1.iso"; modification-date="Tue, 27 Apr 2021 15:25:15 +0200"; size=928993280; and it gets directly into the GUI like that. It did work for a Debian image. https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-10.9.0-amd64-DVD-1.iso Tested-by: Dominic Jäger