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


Release history Release notifications

This version
History Node

0.0.2

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
httpclient-0.0.2.zip (30.9 kB) Copy SHA256 hash SHA256 Source None Sep 13, 2011

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page