(no subject)
Mar. 21st, 2013 12:42 pmкак называются люди, которые делают так?
UPD:
так, придется объяснять.
1. http://www.ietf.org/rfc/rfc1945.txt, в разделе Hypertext Transfer Protocol -- HTTP/1.0, 1.3 Overall Operation: In any case, the closing of the connection by either or both parties always terminates the current request, regardless of its status
2. вообще-то надо получить ответ и понять, 200 OK это, или что-то еще
3. 30X коды? не, не слышал.
import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('172.16.1.1',80)) s.send('POST /proto/result.php HTTP/1.0\nHost: test\n\n') s.close()
UPD:
так, придется объяснять.
1. http://www.ietf.org/rfc/rfc1945.txt, в разделе Hypertext Transfer Protocol -- HTTP/1.0, 1.3 Overall Operation: In any case, the closing of the connection by either or both parties always terminates the current request, regardless of its status
2. вообще-то надо получить ответ и понять, 200 OK это, или что-то еще
3. 30X коды? не, не слышал.