unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alain Picard <alain@gocatch.com>
To: Andreas Schwab <schwab@suse.de>
Cc: 24490@debbugs.gnu.org
Subject: bug#24490: 25.1; restclient no longer sends auth header upon redirect
Date: Thu, 22 Sep 2016 10:01:50 +1000	[thread overview]
Message-ID: <CAAzYSckvPc-wSaF--FKKEL-bxhRdw5KXD6PtsHctEUFT0Nr1vg@mail.gmail.com> (raw)
In-Reply-To: <mvmwpi5654m.fsf@hawking.suse.de>

[-- Attachment #1: Type: text/plain, Size: 1438 bytes --]

Well, curl gives you back the 303 (See Other) with
the Location header, unless you add -L (follow redirection)
in which case it reposts any original header (including Authorization) to
the new location.  i.e. "it just works".

What would be nice for restclient is a separate keystroke
which either does or does not follow the redirection; sometimes
you want to debug the initial hop.  But the default should be
to do what it does now, which is to follow; i.e. "act like a browser".

Hope this helps.

  Alain

On 21 September 2016 at 18:15, Andreas Schwab <schwab@suse.de> wrote:

> On Sep 21 2016, Alain Picard <alain@gocatch.com> wrote:
>
> > Problem: I am using restclient.el, and hitting a server which
> > issues a redirect, and I receive a 400 Forbidden response because
> > the redirected call does not receive the authentication header
> > (I can see this from the log of my server).
>
> How does curl or wget handle this?
>
> Andreas.
>
> --
> Andreas Schwab, SUSE Labs, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
>

-- 
 <http://www.gocatch.com>
<http://www.facebook.com/goCatch> <http://twitter.com/goCatchApp> 
<http://www.linkedin.com/company/gocatch> 
<https://www.instagram.com/gocatch/> 
<https://itunes.apple.com/au/app/gocatch/id444439909?mt=8> 
<https://play.google.com/store/apps/details?id=com.gocatchapp.goCatch&hl=en>
 

[-- Attachment #2: Type: text/html, Size: 4280 bytes --]

  reply	other threads:[~2016-09-22  0:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-21  4:19 bug#24490: 25.1; restclient no longer sends auth header upon redirect Alain Picard
2016-09-21  8:15 ` Andreas Schwab
2016-09-22  0:01   ` Alain Picard [this message]
2021-07-06 15:44 ` Lars Ingebrigtsen
2021-07-08 21:34   ` Thomas Fitzsimmons
2021-07-14 17:47     ` Thomas Fitzsimmons
2021-07-14 18:23       ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAzYSckvPc-wSaF--FKKEL-bxhRdw5KXD6PtsHctEUFT0Nr1vg@mail.gmail.com \
    --to=alain@gocatch.com \
    --cc=24490@debbugs.gnu.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).