User Tools

Site Tools


redirectpage

Using HTTP 303: 303 See Other: This status code tells the client (like your web browser) that the resource they're trying to access can be found under a different URL.

Use Case: it’s used to redirect the user back to the main page after they submit the form, effectively refreshing the web interface.

How It Works in Your Code:

server.sendHeader("Location", "/");
server.send(303);
redirectpage.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki