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.

Source Distribution

httpclient-0.0.2.zip (30.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page