Send the HTTP/ MQTT/ WEBSOCKET Request
Project description
🛠️ 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tp_requests-2025.10.10.tar.gz.
File metadata
- Download URL: tp_requests-2025.10.10.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67a98a198d84790fe6569fe1f8ff2cdd3801ad7fb5bfddb2881efb32ae3d6c02
|
|
| MD5 |
535455ec536b7aba33661e59e6d9b21b
|
|
| BLAKE2b-256 |
a89e5d3d85ba91d6ab4b9b10721f1bfd37c7f96d4d578f8fcc3b414730fe174f
|
File details
Details for the file tp_requests-2025.10.10-py3-none-any.whl.
File metadata
- Download URL: tp_requests-2025.10.10-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1fa6a8a2195126721a16273d49372c627829f194ea8081b196d04cae1e61149
|
|
| MD5 |
a08f956e7899453c59a4aa96f3a604e5
|
|
| BLAKE2b-256 |
b97b3e27b45aa68cdd8ddd8da4bec0d07db678b514d0bcfecf7323d9daa302fa
|