From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.devel Subject: Re: 307 status code handling in url-http-parse-headers Date: Tue, 02 Feb 2016 01:54:30 +1100 Message-ID: <87oac0wkex.fsf@gmail.com> References: <87oac0o64s.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1454338502 3448 80.91.229.3 (1 Feb 2016 14:55:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Feb 2016 14:55:02 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 01 15:54:56 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aQFsV-0006no-4w for ged-emacs-devel@m.gmane.org; Mon, 01 Feb 2016 15:54:55 +0100 Original-Received: from localhost ([::1]:52829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQFsU-0004dQ-9m for ged-emacs-devel@m.gmane.org; Mon, 01 Feb 2016 09:54:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQFsF-0004dA-Ur for emacs-devel@gnu.org; Mon, 01 Feb 2016 09:54:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQFsB-0000mc-Uo for emacs-devel@gnu.org; Mon, 01 Feb 2016 09:54:39 -0500 Original-Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:34362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQFsB-0000m6-Nz for emacs-devel@gnu.org; Mon, 01 Feb 2016 09:54:35 -0500 Original-Received: by mail-pa0-x231.google.com with SMTP id uo6so84926058pac.1 for ; Mon, 01 Feb 2016 06:54:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=wwWqaMga08UX+EVk7XqpbRVWiZlh9k6G4x1QVUvNTS0=; b=A9cPu84KULcayEwv8mVY5r38w15HwxCCtZWMtyc56QxG4bBoe2Qo4jd0KDmPfZc0rJ +PMlObLJtcLmm3dqzik+hh03tvEkmhtCqyn8PKJGTyOG6FZLrBfxdRZYEm5XAw+Uj2Pt PF4zT+ofsJbcvFPySbn3qUP38/RmXIQ+/jJj+380310sY+bRBq/YK3VWfrv102IHA1a3 7RDJ+pX96x3UFcoKCXIvBFxrnmMXyeK5Cu/8dctgs79y2WLy/fC04Ohh1sNbkRAfWWru iduk9JHPQnxFy/FPKhopKpqkQVRDMMZSox014q3XbUM1KX4XcGYUcY6KKZCUKNRacWb9 t9OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-type; bh=wwWqaMga08UX+EVk7XqpbRVWiZlh9k6G4x1QVUvNTS0=; b=O1B2YMPm80j/f5ioKd5mP/sr+9YlFxzSBNKcatRmlUZLaCc5H7AiZh/1emTC1am3HN pGcQTYVSyN+h4TP37Y8i3ZgtS5rRd9OVeIxFwJ/7Duilj7nn8hr+pXFvYiVoxk3SOLeK /COR4mPct7R/ml/GoRAVR2Vb6q9HGSzBBopyv521hijl75ewnShTnNTcmKg5Sc/18YWU 2scppNXq9GGKDVFCIrwMA4kw4L9JhaQcubwXx1D0QaLsoNYaIq2U9B9oul3vTeMBt8jx Xu0PT805nv8CvAg2fZ96Y45afN/DD0O0QXk9RPB2RAubq74mm3BhK5nSWeFajMXNPB5R gIuw== X-Gm-Message-State: AG10YORAX32QKEdQFjqidpticE8y3d17xUb1q4e4CniPhRmUTgYlPYSYfGvd0kKKCGrbcw== X-Received: by 10.66.100.228 with SMTP id fb4mr38291971pab.84.1454338474670; Mon, 01 Feb 2016 06:54:34 -0800 (PST) Original-Received: from localhost (114-198-67-137.dyn.iinet.net.au. [114.198.67.137]) by smtp.gmail.com with ESMTPSA id 70sm43816811pfc.69.2016.02.01.06.54.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2016 06:54:34 -0800 (PST) User-agent: mu4e 0.9.16; emacs 24.5.3 In-reply-to: <87oac0o64s.fsf@petton.fr> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199120 Archived-At: Nicolas Petton writes: > I see that `url-http-parse-headers' won't redirect a 307 > response for a POST request. > > There's a comment about 301/302 status codes, which says that > for other requests than HEAD and GET, the user agent must not > automatically redirect, which seems to follow the RFC. > > However, should we ask the user confirmation for the redirection > and do the redirect depending on the user's choice? Sorry, do you mean, ask the user for redirect confirmation in the context of HEAD and GET requests? The reason i ask is this: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18290 Unfortunately i've not yet been able to find the time to try to work on this issue, but asking users for confirmation in the context of a PROPFIND request seems like it might not be a good idea .... Alexis.