redirect: store the "would redirect to" URL when max redirs is reached

Test 1261 added to verify.

Reported-by: Lloyd Fournier

Fixes #1489
Closes #1497
This commit is contained in:
Daniel Stenberg 2017-05-23 10:32:18 +02:00
parent 48f2a96a60
commit bba59073c5
5 changed files with 94 additions and 38 deletions

View file

@ -65,9 +65,9 @@ The result of the HTTPS proxy's SSL peer certificate verification that was
requested. 0 means the verification was successful. (Added in 7.52.0)
.TP
.B redirect_url
When an HTTP request was made without --location to follow redirects, this
variable will show the actual URL a redirect \fIwould\fP take you to. (Added
in 7.18.2)
When an HTTP request was made without --location to follow redirects (or when
--max-redir is met), this variable will show the actual URL a redirect
\fIwould\fP have gone to. (Added in 7.18.2)
.TP
.B remote_ip
The remote IP address of the most recently done connection - can be either