The Location header names the next path.

highlighted = computed this step

Location gives the next path

The Location header is parsed from the response bytes.

Location parsed\text{Location parsed}
Location headerThe request, rule, response, and redirect check rows are recomputed from pinned bytes.Location header - /old -> /new with 302 Found, body 0 bytessectionnamevaluecheckrequest linemethodGETparsedrequest linepath/oldold pathrequest lineversionHTTP/1.1parsedheaderHostdocs.exampleexactheaderAccepttext/htmlexactredirect rulefrom/oldrequest pathredirect ruleto/newnext pathstatusversionHTTP/1.1parsedstatusstatus302 FoundredirectheaderLocation/newnext pathheaderContent-Length0no bodycheckrequest path/oldmatched rulechecknext path/newfrom Locationchecksent body bytes0empty body

The next path is /new

The Location row names /new as the next path.

next path=/new\text{next path}=\text{/new}
Location headerThe request, rule, response, and redirect check rows are recomputed from pinned bytes.Location header - /old -> /new with 302 Found, body 0 bytessectionnamevaluecheckrequest linemethodGETparsedrequest linepath/oldold pathrequest lineversionHTTP/1.1parsedheaderHostdocs.exampleexactheaderAccepttext/htmlexactredirect rulefrom/oldrequest pathredirect ruleto/newnext pathstatusversionHTTP/1.1parsedstatusstatus302 FoundredirectheaderLocation/newnext pathheaderContent-Length0no bodycheckrequest path/oldmatched rulechecknext path/newfrom Locationchecksent body bytes0empty body

The next path is a header value

The body is empty here; the useful redirect target is in the header.

header carries next path\text{header carries next path}
Location headerThe request, rule, response, and redirect check rows are recomputed from pinned bytes.Location header - /old -> /new with 302 Found, body 0 bytessectionnamevaluecheckrequest linemethodGETparsedrequest linepath/oldold pathrequest lineversionHTTP/1.1parsedheaderHostdocs.exampleexactheaderAccepttext/htmlexactredirect rulefrom/oldrequest pathredirect ruleto/newnext pathstatusversionHTTP/1.1parsedstatusstatus302 FoundredirectheaderLocation/newnext pathheaderContent-Length0no bodycheckrequest path/oldmatched rulechecknext path/newfrom Locationchecksent body bytes0empty body

Summary

The response points from /old to /new.

/old/new\text{/old}\to\text{/new}
Location headerThe request, rule, response, and redirect check rows are recomputed from pinned bytes.Location header - /old -> /new with 302 Found, body 0 bytessectionnamevaluecheckrequest linemethodGETparsedrequest linepath/oldold pathrequest lineversionHTTP/1.1parsedheaderHostdocs.exampleexactheaderAccepttext/htmlexactredirect rulefrom/oldrequest pathredirect ruleto/newnext pathstatusversionHTTP/1.1parsedstatusstatus302 FoundredirectheaderLocation/newnext pathheaderContent-Length0no bodycheckrequest path/oldmatched rulechecknext path/newfrom Locationchecksent body bytes0empty body