I dont want to use html
file, but only with django I have to make POST request.
Just like urllib2
sends a get
request.
Here's how you'd write the accepted answer's example using 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.