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 Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page