Skip to content

Instantly share code, notes, and snippets.

@didip
Created September 19, 2010 18:12
Show Gist options
  • Save didip/586982 to your computer and use it in GitHub Desktop.
Save didip/586982 to your computer and use it in GitHub Desktop.
c = pycurl.Curl()
c.setopt(pycurl.URL, "http://example.com/post")
c.setopt(pycurl.POST, 1)
c.setopt(pycurl.POSTFIELDS,
urllib.urlencode({
'some_data': 'the data',
'some_more_data': 'more data',
})
)
c.perform()
c.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment