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 setup.py build
python setup.py install
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={"host":"127.0.0.1","port":8080}))
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
tp_requests-2025.4.30.tar.gz
(3.9 kB
view details)
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.4.30.tar.gz.
File metadata
- Download URL: tp_requests-2025.4.30.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f1fae5db50f72cb0b1584b5f2ebf35c6e770c1c41912f45eac5a98b400f0954
|
|
| MD5 |
53a05f3efbbf20de4013fd6a18a6f7f3
|
|
| BLAKE2b-256 |
b48fd332f429eeccf43e82c0c2fbbbb8e31ee6e63ba4b16b8483131ac2bee2d3
|
File details
Details for the file TP_Requests-2025.4.30-py3-none-any.whl.
File metadata
- Download URL: TP_Requests-2025.4.30-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e21946cf014aa06e3be64e7acb205528d4dbdffb5ed7733d75441ee7936de2d
|
|
| MD5 |
767f3e088e6c46dfa0d9005d6c28a767
|
|
| BLAKE2b-256 |
72eba77ad270572bd82ef45af9330604cbc2ac1fe9f75e25f2664e6f480bdf64
|