Use requests to talk HTTP via a Raw sockets (To Test RFC Compliance)
Project description
requests-raw
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for requests_raw-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5ff99c35c020505c537a8e26f10363f73b4d76e7654a20fbb7ff6332a4927e6 |
|
MD5 | 6f510811c3d7cb4c79a18731be51767a |
|
BLAKE2b-256 | 1c346ff7ff57262c701e68898838865e39ddea352a52ec95d738efda09bdd1b3 |