liveBook · Manning

Http redirect

Also called redirection

An HTTP redirect is a response that instructs a user agent to request a resource at a different URI, typically using a 3xx status code and a Location header.

How 2 Manning books explain it

Pro ASP.NET Core 7, Tenth Edition

HTTP redirection is an HTTP response mechanism that instructs a client to request a different URL or endpoint.

How it is used
Uses redirects to move clients between controller endpoints, complete form submissions, and display a production error page.
How deep it goes
Works through controller redirect methods and client behavior, then applies redirects in form and exception-handling flows without detailing HTTP status codes.
Examples
Tests a product redirect with Invoke-RestMethod and uses a Razor Pages form whose submitted data appears on a results page.
What you can do after
Apply it via ASP.NET Core controller action results or Razor Pages form handlers, and select local-only redirects for user-provided URLs.

Read how Pro ASP.NET Core 7, Tenth Edition explains http redirect →

ASP.NET Core in Action, 3e

An HTTP redirect is a response that instructs a client to issue a request for a different URL.

How it is used
Moves users between pages after form submissions and generates separate requests for friendly error pages.
How deep it goes
Explains browser follow-up requests, 302 and 200 responses, and status-code loss while stopping short of redirect variants.
Examples
Uses checkout-to-payment navigation and status-code middleware redirecting a 404 response to /404.
What you can do after
Operate/configure Razor Pages navigation and error handling with redirect-based results and status-code middleware.

Read how ASP.NET Core in Action, 3e explains http redirect →

Also covered in

What to know first

Related concepts

Questions about http redirect

What is http redirect?

An HTTP redirect is a response that instructs a user agent to request a resource at a different URI, typically using a 3xx status code and a Location header.

Which Manning books explain http redirect?

Pro ASP.NET Core 7, Tenth Edition and ASP.NET Core in Action, 3e.

What should I know before learning http redirect?

Manning books that teach http redirect usually introduce HTML, HTTP request, HTTP status code and JavaScript first.

What is http redirect part of?

Http redirect is part of post-redirect-get. POST-Redirect-GET is a web interaction pattern in which a form submission is followed by a redirect to a result URL retrieved with GET.

What is http redirect also called?

Http redirect is also called redirection.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.