python2.7如何增加header
python2.7 如何增加header?
python2.7 如何增加header?
2017-05-23
2.7的文档
By default, the URLopener class sends a User-Agent header of urllib/VVV, where VVV is the urllib version number. Applications can define their own User-Agent header by subclassing URLopener orFancyURLopener and setting the class attribute version to an appropriate string value in the subclass definition.
举报