Created
September 11, 2014 19:03
-
-
Save joaopaulovieira/9580fe656ace3e82b78d 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
#!/usr/bin/python | |
import httplib, urllib, json | |
params = urllib.urlencode({'GLBID': '1001', 'uri': 'localhost:5008/static/feed.html', 'body': 'teste'}) | |
conn = httplib.HTTPConnection("localhost:5008") | |
conn.request("POST", "/post/localhost:5008/static/feed.html", params) | |
response = conn.getresponse() | |
print response.status, response.reason |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment