B
B
bratslav2020-06-15 13:47:47
Python
bratslav, 2020-06-15 13:47:47

What is my mistake when working with requests?

Good afternoon!

I write the following request:

import requests
res = requests.post(' 89.105.199.78:9000/chatbot/openSession ', headers={'Content-type': 'application/json'}, data={'username':'ххххххх, 'password':'хххх'})
print(res)
print(res.text)

I get:

Don't try to hack the URI!

Tell me, pliz, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-06-15
@SoreMix

user agent + cookies

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question