Search⌘ K
AI Features

Beyond HTTP GET

Explore how to use Python's httplib2 library to send authenticated HTTP POST requests for interacting with web APIs. Understand payload formatting, URL encoding, and server responses to update statuses on services like Identi.ca. Gain practical skills for API communication beyond simple GET requests.

We'll cover the following...

HTTP web services are not limited to GET requests. What if you want to create something new? Whenever you post a comment on a discussion forum, update your weblog, publish your status on a microblogging service like Twitter or Identi.ca, you’re probably already using http POST.

Both Twitter and Identi.ca both offer a simple HTTP-based API for publishing and updating your status in 140 characters or less. Let’s look at Identi.ca’s API documentation for updating your status:

Identi.ca rest api Method: statuses/update
Updates the authenticating user’s status. Requires the status parameter specified below. Request must be a
...