Home python POST request to PYTHON

POST request to PYTHON

Author

Date

Category

I don’t really understand how to send Post requests in Python (Along with cookies).
Here is the POST request I need to send to the server:


Answer 1, authority 100%

import requests
headers = {'Accept': '* / *', 'Content-Type': '...'} # Here, use the usual python dictionary to specify all your headers
cookies = {'ips4_IPSSessionFront': '...'} # Similarly with headers, specify cookies
response = requests.post ('http://www.lol.ru', headers = headers, cookies = cookies)

The response object contains the response to your request.
I didn’t describe the example completely, because I do not consider it expedient to rewrite the meanings from the picture you attached, I think the essence is clear as it is.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions