0

about post method

how do we get attributes from post method

8th Mar 2017, 12:13 PM
Palash Shantilal Gupta
Palash Shantilal Gupta - avatar
1 Answer
+ 2
import requests get_response = requests.get(url='http://google.com') post_data = {'username':'joeb', 'password':'foobar'} # POST some form-encoded data: post_response = requests.post(url='http://httpbin.org/post', data=post_data) http://stackoverflow.com/questions/4476373/simple-url-get-post-function-in-JUMP_LINK__&&__python__&&__JUMP_LINK
9th Mar 2017, 5:45 AM
Álvaro