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"

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

print(sendRequest_result)

👥 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.10.8.tar.gz (5.3 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.10.8-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tp_requests-2025.10.8.tar.gz
Algorithm Hash digest
SHA256 8436e6bcaad11cbfe482d6f7606dd15ea53002abb3aff0073e8a01df984b568f
MD5 5e37784358f0ea53391c489d0c0f340d
BLAKE2b-256 ce7c9a01deb3453c5e253cbcec793d72e331a06a0d6c573017d91e4556100a24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tp_requests-2025.10.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c85c5bf49c78c60c3f742b8b0881ddbce4fce76fdeed74caf3542bf1b19f4658
MD5 29a6c7c935c484e03b940e5aafa3b5da
BLAKE2b-256 de3a9ca8dcee24ef403d9b981bb5e9fac2b104addeb94460c15f9bb27bc2dc44

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