In my callback handler from twitter, I cannot seem to make a httplib POST request as it throws an unrelated 401 Token Invalid Expired error. I'm using Google App Engine and have tried the urlfetch function as well.
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
conn = httplib.HTTPConnection(create_url)
conn.request("POST", "", form_data, headers)
response = conn.getresponse()
if response.status == 500:
# do stuff
Matching error log: Twitter API returned a 401 (Unauthorized), Invalid / expired To ken