]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
use a more modern UA (#25145)
authorBenjamin Peterson <benjamin@python.org>
Sun, 20 Sep 2015 18:16:45 +0000 (23:16 +0500)
committerBenjamin Peterson <benjamin@python.org>
Sun, 20 Sep 2015 18:16:45 +0000 (23:16 +0500)
Doc/howto/urllib2.rst

index 0cf62f581b6273db39b0efe669159f9266416ffe..cccbc54169b36dff9e4443ff382c5cad380b81ed 100644 (file)
@@ -164,7 +164,7 @@ Explorer [#]_. ::
     import urllib2
 
     url = 'http://www.someserver.com/cgi-bin/register.cgi'
-    user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
+    user_agent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'
     values = {'name' : 'Michael Foord',
               'location' : 'Northampton',
               'language' : 'Python' }