liveBook · Manning

Http redirect

An HTTP redirect is a response that instructs a client to request or display a resource at a different location.

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 →

Related concepts

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.