Possible Duplicate:
CURL alternative in Python
I'm trying to write a python snippet that returns a JSON response. With curl it works and look like this:
curl -H 'content-type: application/json' \
-d '' http://example.com/postservice.get_notes
How could I write code in python that returns a JSON object as the curl command does?