I dont want to use html file, but only with django I have to make POST request.
html
Just like urllib2 sends a get request.
urllib2
get
Here's how you'd write the accepted answer's example using python-requests:
python-requests
post_data = {'name': 'Gladys'} response = requests.post('http://example.com', data=post_data) content = response.content
Much more intuitive. See the Quickstart for more simple examples.
1.4m articles
1.4m replys
5 comments
57.0k users