Skip to main content

http2client

A simple HTTP/2 client for Cyber Security

Useage:

import h2.connection
import http2client
import json

config = h2.connection.H2Configuration()
config.validate_outbound_headers = False
config.validate_inbound_headers = False
config.normalize_outbound_headers = False
s = http2client.Session("httpbin.org", 443, config=config, http2_prior_knowledge=True)

body = b'0\r\n\r\nGET /404 HTTP/1.1\r\nx: x'

headers = [
    (':method', 'POST'),
    (':path', "/anything"),
    (':authority', "httpbin.org"),
    (':scheme', 'https'),
    # ('User-Agent', 'testet\r\nTransfer-Encoding: chunked'),
    ('content-length', len(body)),
]

# If the headers is set, the url will be ignored
stream1 = s.post("https://httpbin.org", headers=headers, data=body)  
stream2 = s.get("https://httpbin.org/anything")
print(json.loads(stream1.getData()))
print(json.loads(stream2.getData()))


resp = http2client.request("GET", "https://httpbin.org/anything",
                           http2_prior_knowledge=True,
                           normalize=False,
                           validate=False,
                           timeout=10
                           )
print(resp.getHeaders())
print(json.loads(resp.getData()))

Metadata

Release files for http2client 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for http2client 0.1.0
File Size Uploaded Provenance Actions
http2client-0.1.0.tar.gz 6.7 kB Without provenance Details for http2client-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for http2client 0.1.0
File Interpreter ABI Platform Actions
http2client-0.1.0-py3-none-any.whl Python 3 none any Details for http2client-0.1.0-py3-none-any.whl

Total release size: 13.8 kB

Release files / http2client-0.1.0.tar.gz

Download URL http2client-0.1.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
93751f3f8534055040d2253c14ce5c1d254078283e310c1e4a5fa149fae543e1
BLAKE2b-256 checksum
How to use checksums
44ec61d1921401e5b73326c0cd6ad61f5e5746dc23708d681a5899b7d7abe427
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.9

Release files / http2client-0.1.0-py3-none-any.whl

Download URL http2client-0.1.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9d7ba4b94b1253461567bf3fd16e203d903a062ca27859e7ed590c177f0aa58
BLAKE2b-256 checksum
How to use checksums
04201c01e0204464f0101ccda138290f2e6446fee557846694d0d88b6f851aec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.9

Security for http2client 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page