|
发表于 2016-5-21 10:03:54
|
显示全部楼层
C:\Python33\python.exe D:/untitled/服务器.py
Serving HTTP on port 8888 ...
b'GET /hello HTTP/1.1\r\nHost: localhost:8888\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-alive\r\n\r\n'
Traceback (most recent call last):
File "D:/untitled/服务器.py", line 16, in <module>
client_connection.sendall(http_response)
TypeError: 'str' does not support the buffer interface |
|