I am using Python 2.7.3 and I am trying to post data to my local web server. The data I am posting is temperature readings from my raspberry pi. I know the url is right because
save your time, use this requests lib for httpRequests,
simple app
import requests url = 'http://url.com' query = {'field': value} res = requests.post(url, data=query) print(res.text)