Skip to content

Commit 95acbce

Browse files
committed
use a more modern UA (python#25145)
1 parent c37c49f commit 95acbce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Doc/howto/urllib2.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Explorer [#]_. ::
174174
import urllib.request
175175

176176
url = 'http://www.someserver.com/cgi-bin/register.cgi'
177-
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
177+
user_agent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'
178178
values = {'name' : 'Michael Foord',
179179
'location' : 'Northampton',
180180
'language' : 'Python' }

0 commit comments

Comments
 (0)