from requests_html import HTMLSession
session = HTMLSession()
# url to make a post request to
url='https://httpbin.org/post'
post_user ={
"user":'alixaprodev',
"pass":'password'
}
# making post request
response = session.post(url, data=post_user)
print(f'Content of Request:{response.content} ')
print(f'URL : {response.url}')
## output ##
# Content of Request:b'{
"form": {
"pass": "password",
"user":
#"alixaprodev"
}
# URL : https://httpbin.org/postCopy Code