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