I dont want to use html file, but only with django I have to make POST request.
Just like urllib2 sends a get request.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Python 2, a combination of methods from
urllib2andurllibwill do the trick. Here is how I post data using the two:urlopen() is a method you use for opening urls.
urlencode() converts the arguments to percent-encoded string.