The selenium IE Driver, the default of the user-agent:
Python HTTP auth
Specific header is as follows:
GET/HTTP/1.1
Accept: application/x - ms - application, image/jpeg, + XML, application/xaml image/GIF, image/pjpeg, application/x - ms - xbap application/VND. - ms excel, application/VND. Ms powerpoint, application/msword, */*
The Accept - Language: useful - CN
The user-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64. Trident/4.0; SLCC2; The.net CLR 2.0.50727; The.net CLR 3.5.30729; The.net CLR 3.0.30729; . NET4.0 C; NET4.0 E)
The Accept - Encoding: gzip, deflate
Connection: Keep Alive -
Host: wobss.sdinfo.net
POST/session/34214242 - c366-4556 - be0e - 3 a1aa562bb9f timeouts/implicit_wait HTTP/1.1
The Accept - Encoding: identity
The Content - Length: 68
Host: 127.0.0.1:62412
Accept: application/json
The user-agent: Python HTTP auth
Connection: close
The content-type: application/json; Charset=utf-8
Blocking this makes some websites, how to modify the user agent?