-
-
Save anonymous/ae65db6e623038074729 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2,json | |
url = 'http://0.0.0.0:8000/api/v1/feedback/' | |
postdata = {"happy": True, "product":"Firefox for Android", "description":"Cool!"} | |
req = urllib2.Request(url) | |
req.add_header('Content-Type','application/json') | |
data = json.dumps(postdata) | |
response = urllib2.urlopen(req,data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment