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 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


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.7.1.tar.gz (4.1 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.7.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tp_requests-2025.7.1.tar.gz
  • Upload date:
  • Size: 4.1 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.7.1.tar.gz
Algorithm Hash digest
SHA256 be08b5c08d243b469a4923278c495ced29cb92a19a810bc55641d09e51313b7b
MD5 ac2e93e4e3fb938029ef066aa8cd9310
BLAKE2b-256 ab4328bd1e028dbfe346d42865731ee6fcf48bf2e277eca6d03d49ff9d9a3b65

See more details on using hashes here.

File details

Details for the file TP_Requests-2025.7.1-py3-none-any.whl.

File metadata

  • Download URL: TP_Requests-2025.7.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for TP_Requests-2025.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9eb6302389db9ff981bcd4eb1fe975488170a31287a271af543239bbfc2878eb
MD5 9dacf044e4404baa5ed813e85e926500
BLAKE2b-256 47cc50f87bbaa8fd3c64cae519562fd46e50e081b4754c5f8ef5945480c45cc5

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