Skip to content

6ers/python-http-redirect-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Python HTTP Redirect Demo

This is a simple demonstration of HTTP behavior using the python -m http.server command.

  • Simulates a basic file server
  • Demonstrates 404 errors (like favicon.ico not found)
  • Includes a client-side redirect (via HTML meta refresh or JavaScript)
  • Also shows how to simulate a 302 redirect using a crafted index.html

How to Use

  1. Run: python -m http.server
  2. Open your browser to: http://localhost:8000

This project is used to teach students how HTTP works — including status codes like 200, 302, and 404.

About

A demo of HTTP 302 redirect and client-side redirect using Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages