Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Porting 2.x to 3.3: BaseHTTPServer

Thread Tools

Re: Porting 2.x to 3.3: BaseHTTPServer

Serhiy Storchaka
Posts: n/a
21.04.13 16:46, Chris Angelico написав(ла):
> Also, it's expecting bytes everywhere, and I can't find a simple way
> to declare an encoding and let self.wfile.write() accept str. Do I
> have to explicitly encode everything that I write, or is there a
> cleaner way?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting 2.x to 3.3: BaseHTTPServer Chris Angelico Python 2 04-21-2013 02:13 PM
BaseHTTPServer and keep-alive (evil hack problem) David Python 1 07-28-2004 12:40 PM
BaseHTTPServer and class variables Yin Python 1 01-26-2004 05:33 PM
BaseHTTPServer/SimpleHTTPServer HTTP/1.1 support? Joshua W. Biagio Python 0 09-30-2003 04:37 AM
BaseHTTPServer fails POST requests: disconnected by peer; maybe sockets bug? help!? Molly Python 0 08-25-2003 06:08 AM