This code produces a POST request:
urllib2.urlopen("http://somedomain.com/", data)
I would like to produce a GET request – any ideas on how to do that?
Thanks for the help!
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.
Try:
[edited]
If you want to send xml/json/etc data in the body, use something like:
This will use the POST method, but any “GET” parameters will also be available to your application.