Skip to main content

Use requests to talk HTTP via a Raw sockets (To Test RFC Compliance)

Project description

requests-raw

PyPI version

Use requests to send HTTP raw sockets (To Test RFC Compliance)

Installation

Prerequisites

  • Python 3.5+

From pip

pip3 install requests-raw

Usage

import json
import requests_raw

res = requests_raw.raw(url='http://httpbin.org/', data=b"GET /get HTTP/1.1\r\nHost: httpbin.org\r\n\r\n")
res_json = res.json()
print(json.dumps(res_json, indent=2))

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

requests-raw-0.1.0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

requests_raw-0.1.0-py2.py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 2 Python 3

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