You are here : python_3requestsrequestspost

requests.post() - requests

requests.post(url,data) makes a HTTP POST Request. 


Syntax

r=requests.post(url,data={'key':'value'})


Example

import requests
r=requests.post('http://example.com/login.php',data={'username':'your_username','password':'your_password'})


Output / Return Value


Limitations


Alternatives / See Also


Reference