how to catch exceptions from the simpleHTTPServer . ( srry if this sounds
ridiculous )
the below is a small code snippet for a basic webserver . every time
whenever there is a HTTP GET/POST request i can see the feedback in the
terminal . how do i catch those feedbacks ?
code snippet:
http://cod
On Tue, Jul 20, 2010 at 10:25 PM, Rahul R wrote:
> how to catch exceptions from the simpleHTTPServer . ( srry if this sounds
> ridiculous )
> the below is a small code snippet for a basic webserver . every time
> whenever there is a HTTP GET/POST request i can see the feedback in the
> terminal
>
>
> --- browser.py 2010-07-20 22:51:33.0 +0530
> +++ browser-new.py 2010-07-20 22:55:20.0 +0530
> @@ -18,4 +18,10 @@
>
> sa = httpd.socket.getsockname()
> print "Serving HTTP on", sa[0], "port", sa[1], "..."
> -httpd.serve_forev
On 07/20/2010 11:45 PM, Rahul R wrote:
negative aint working , i tried a few changes myself . when i referred to
the class BaseHTTPServer s methods ( http://bit.ly/aYqnQE ) i found a
particular method log_message which is similar to sys.stderr but for some
reason it isnt appending ne data into