diff -r a82d7e028458 Lib/http/client.py --- a/Lib/http/client.py Mon Jun 16 19:26:56 2014 -0400 +++ b/Lib/http/client.py Tue Jun 17 08:39:22 2014 -0700 @@ -72,6 +72,7 @@ import os import socket import collections +import resource from urllib.parse import urlsplit __all__ = ["HTTPResponse", "HTTPConnection", @@ -926,7 +927,7 @@ if self.debuglevel > 0: print("send:", repr(data)) - blocksize = 8192 + blocksize = resource.getpagesize() if hasattr(data, "read") : if self.debuglevel > 0: print("sendIng a read()able")