Skip to main content

Send the HTTP/ MQTT/ WEBSOCKET Request

Project description

TP-Requests - PyPI

Send the HTTP/ MQTT/ WEBSOCKET Request



🛠️ Installation

From PyPI:

pip install tp-requests

From Source:

git clone https://github.com/TPCyberSec/TP-Requests.git --branch <Branch/Tag>
cd TP-Requests
python -m build
python -m pip install dist/tp_requests-<version>-py3-none-any.whl

📘 Basic Usage

from tp_requests.http import TP_HTTP_REQUEST

rawRequest = """GET /v1/promo/extension HTTP/2
Host: d2y7f743exec8w.cloudfront.net
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en-US;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.97 Safari/537.36
Connection: close
Cache-Control: max-age=0

"""

httpRequest = TP_HTTP_REQUEST(rawRequest)

httpRequest.RequestParser.request_method = "POST"

print(httpRequest.sendRequest(Host="d2y7f743exec8w.cloudfront.net", Port=443, Scheme="https", proxy_server={"type":"http","host":"127.0.0.1","port":8080}))

👥 Contributors


📝 CHANGELOG


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

tp_requests-2025.8.31.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tp_requests-2025.8.31-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file tp_requests-2025.8.31.tar.gz.

File metadata

  • Download URL: tp_requests-2025.8.31.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for tp_requests-2025.8.31.tar.gz
Algorithm Hash digest
SHA256 ff6823b147b2bd1d605425b8b0a1879d01fad18531a78cc5783a8cc1840239ea
MD5 9155dde4cc6f7a818c99dc1c2a2219b8
BLAKE2b-256 5a232f32dd098bd78ed5ee045f6f7ec422e91fab7a9c96bf40663eafe2e44cd2

See more details on using hashes here.

File details

Details for the file tp_requests-2025.8.31-py3-none-any.whl.

File metadata

File hashes

Hashes for tp_requests-2025.8.31-py3-none-any.whl
Algorithm Hash digest
SHA256 d758c57950994345ead6bb22929e40de2ae334f83cdbe33ee14339c1975c1373
MD5 7ef6ec979c764f3447d42de47e62c0c8
BLAKE2b-256 61e404caaf065b8a9e03d22765c7ce03b3654cb7f5554e582d0eff26c0b2f37f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page