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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tp_requests-2026.5.18.tar.gz
Algorithm Hash digest
SHA256 c9efaa52f86e3d3654f9af2ba322c9226ef73d44fbab93c081fba975a095ed05
MD5 b51d3955cda1e34775ca31798d29ac95
BLAKE2b-256 6aa241f78380f0e7eb982feb0b8c132883742829c6afe07bf872d58f1746e6d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tp_requests-2026.5.18-py3-none-any.whl
Algorithm Hash digest
SHA256 b9fe7a0fda0d26278bd089880c1ecc1907c5384c9b2a4e714c1eb6254b67527b
MD5 c413d02036b46ec091ec6d909b90fdc6
BLAKE2b-256 f9587d891825333cc84870be38415a1953d55f9ebcf1a45bdf1fdff0f608fb02

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