Skip to main content

A headless HTTP browser.

Project description

Installation

Command line installation (Unix, Windows):

$ pip install httpclient

(pip installation instructions)

Quickstart

Send a GET request:

from httpclient import HttpClient

http_client = HttpClient()
page = http_client.get("http://www.google.com")

print(page.content_as_string)

Send a POST request:

from httpclient import HttpClient

http_client = HttpClient()
page = http_client.post("http://www.some-site.org/login",
                    {"username": "xxx", "password": "yyy"})
print(page.content_as_string)

Documentation

Full documentation within the github wiki.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for httpclient, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size httpclient-0.0.2.zip (30.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page