Python Web Servers and Page Retrievers
Max Erickson
maxerickson at gmail.com
Sun Apr 8 18:23:29 EDT 2007
Subscriber123 <subscriber123 at gmail.com> wrote:
> urllib, or urllib2 for advanced users. For example, you can
> easily set your own headers when retrieving and serving pages,
> such as the User-Agent header which you cannot set in either
> urllib or urllib2.
Sure you can. See:
http://www.diveintopython.org/http_web_services/user_agent.html
(though the behavior was changed for python 2.3 to make setting the
user agent work better)
max
More information about the Python-list
mailing list