Can be:
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0'
or 'User-Agent':'ScriptBot (Pyton)'
Then update the request action with headers=headerLogin:
response = requests.post(host + path,headers=headerLogin, data=json.dumps(login_data))
always returns 401 when call scripts/bot_config.py Solution:
add header with 'User-Agent' in function get_authentication_token
Example:
Can be:
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0'
or'User-Agent':'ScriptBot (Pyton)'
Then update the request action with headers=headerLogin:response = requests.post(host + path,headers=headerLogin, data=json.dumps(login_data))