Is the URL fragment identifier sent to the server? [duplicate]
Fragment identifiers are not sent to the server. The hash fragment is used by the browser to link to elements within the same page.
Fragment identifiers are not sent to the server. The hash fragment is used by the browser to link to elements within the same page.
Simple test, accessing http://localhost:8000/hello?foo=bar#this-is-not-sent-to-server python -c “import SimpleHTTPServer;SimpleHTTPServer.test()” Serving HTTP on 0.0.0.0 port 8000 … localhost – – [02/Jun/2009 12:48:47] code 404, message File not found localhost – – [02/Jun/2009 12:48:47] “GET /hello?foo=bar HTTP/1.1” 404 – The server receives the request without the #appendage – anything after the hash tag is simply an anchor lookup … Read more