Here is the working code in Python (using cURL):
#!/usr/bin/python import pycurl c = pycurl.Curl() values = [ (\"key\", \"YOUR_API_KEY\"),
You should correctly form a multipart POST request. See an example here: Upload files with HTTPWebrequest (multipart/form-data)