301-redirect tagged requests and articles

Categorized request examples and articles tagged with [301-redirect] keyword
How to follow redirects using Curl?
By default, Curl does not follow redirects and displays the content of the 300x page (if any). To follow redirects with Curl, you need to use the -L or --location command-line option. The server indicates that the resource has moved to a new location using the 3XX response code and provides the new address with the Location HTTP header. In this Curl Follow Redirects example, we send a request to www.reqbin.com, which redirects to reqbin.com. Click Run to execute the Curl Follow Redirects example online and see the results.

HTTP Redirect
HTTP redirect is a special kind of server response that forwards the client request to a different URL. HTTP redirects are used when a web page that was accessible at a specific URL has changed its location to another URL.