I have written the following python script, using python requests (http://requests.readthedocs.org/en/latest/):
import requests payload = {\'key1\': \'value 1\
try it.
import urllib urllib.urlencode(params)
http://docs.python.org/2/library/urllib.html#urllib.urlencode