Essentially, you:
- accept a client socket
- read the request line (GET foo or POST foo)
- read the rest of the request headers (until you read
a blank line)
- read the body of the request--this is the content
as submitted by a POST request.
Take a look at HTTP::Daemon. You can either use the module
or take a look at how it works, to see how you can write
your own server.