Location:
header with the new URI to ask for, which can be absolute or relative.-L, --location
option to tell it to do that.--max-redirs
option.--post301
, --post302
and --post303
. If you are instead writing a libcurl based application, you control that behavior with the CURLOPT_POSTREDIR
option.--location-trusted
option.<meta>
tag below. This is somewhat complicated with curl since curl never parses HTML and thus has no knowledge of these kinds of redirects.