Cocoa Source Code - A Simple HTTP Server
"SimpleHTTPServer listens to port 50000, uses the path of the request-URL to construct a new URL by inserting "http://" at the beginning, loads this new URL and renders its contents to a PDF file."