Basic handling of GET POST PUT using BaseHTTPRequestHandler

suggest change

The PUT response body repeats the POST text (received post request), so this transcript does not show a separate PUT handler.

Example output using curl:

$ curl http://localhost/
received get request

$ curl -X POST http://localhost/
received post request:<br>

$ curl -X PUT http://localhost/
received post request:<br>

$ echo 'hello world' | curl --data-binary @- http://localhost/
received post request:<br>hello world

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents