摘要: http://www.voidspace.org.uk/python/articles/urllib2.shtmlurllib2 - The Missing ManualHOWTO Fetch Internet Resources with Pythonurllib2 is a Python module for fetching URLs(Uniform Resource Locators). It offers a very simple interface, in the form ofthe urlopen function. This is capable of fetching U 阅读全文
posted @ 2011-04-10 11:09 bettermanlu 阅读(418) 评论(0) 推荐(0) 编辑
摘要: http://developer.yahoo.com/python/python-rest.htmlPython provides a number of modules for performing HTTP requests. This HOWTO describes how to perform GET and POST requests using the urllib and urllib2 modules from the Python standard library.Simple GET requests Simple POST requests Authenticated r 阅读全文
posted @ 2011-04-10 11:06 bettermanlu 阅读(321) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/chenzehe/archive/2010/08/30/1812995.htmlhttplib实现了HTTP和HTTPS的客户端协议,一般不直接使用,在python更高层的封装模块中(urllib,urllib2)使用了它的http实现。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->importhttplibconn=httplib.HTTPConnection("google.co 阅读全文
posted @ 2011-04-10 10:54 bettermanlu 阅读(916) 评论(0) 推荐(0) 编辑