A simple http server for debugging Webhooks
Project description
Webhook Debugger
Install
curl https://gitlab.com/linalinn/webhook-debugger/raw/master/WebhookDebugger.py -o webhookdebugger.py
Usage
Exsample 1
$ ./WebhookDebugger.py$curl localhost:8080/ -d "some=data"
Exsample Output of WebhookDebugger.py and curl
WebhookDebugger.py:
Started http server 0.0.0.0:8811
SSL disabled
91.14.105.14 - - [09/Oct/2018 14:00:17] "POST / HTTP/1.1" 200 -
[POST]:
/
[HEADERS]:
Host: upload-filter.net:8811
User-Agent: curl/7.60.0
Accept: */*
Content-Length: 9
Content-Type: application/x-www-form-urlencoded
[BODY]:
b'some=data'
[Client IP]:
127.0.0.1
curl:
[POST]:
/
[HEADERS]:
Host: upload-filter.net:8811
User-Agent: curl/7.60.0
Accept: */*
Content-Length: 9
Content-Type: application/x-www-form-urlencoded
[BODY]:
b'some=data'
[Client IP]:
XXX.XXX.XXX.XXX
Exsample 2 with SSl and diffrent response, diffrent Content-Type and diffrent Port
$ ./WebhookDebugger.py -p 8811 -r '{"msg":"JSON says HI"}' -c "application/json" --ssl-cert path/fullchain.pem --ssl-key path/privekey.pem$curl exsample.com:8811/ -d "SSL=true"
Exsample Output of WebhookDebugger.py and curl
WebhookDebugger.py:
Started http server 0.0.0.0:8811
SSL enabled
91.14.105.14 - - [09/Oct/2018 14:22:28] "POST / HTTP/1.1" 200 -
[POST]:
/
[HEADERS]:
Host: exsample.com:8811
User-Agent: curl/7.60.0
Accept: */*
Content-Length: 8
Content-Type: application/x-www-form-urlencoded
[BODY]:
b'SSL=true'
[Client IP]:
XXX.XXX.XXX.XXX
curl:
{"msg":"JSON says HI"}
Forward Option
$ ./WebhookDebugger.py -p 8811 -c "application/json" forward --url exsample.com --port 443 --use-ssl
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 webhook-debugger-0.0.3.tar.gz.
File metadata
- Download URL: webhook-debugger-0.0.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.9.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8550e0e4309b884faed2fb604affe90a4dab7327fd4ddf35a2a5cba28c918dce
|
|
| MD5 |
042530c5468e3f1416c9f694ef32a1b3
|
|
| BLAKE2b-256 |
2196382ca8dc9b5cd145913bf501634e3b39540710f453cd8feaf9cdfb261c05
|
File details
Details for the file webhook_debugger-0.0.3-py3-none-any.whl.
File metadata
- Download URL: webhook_debugger-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.9.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1b298aeb28a3f269a3904544fb9b8424549bdd1f51f91a848841ac68234dd25
|
|
| MD5 |
1ae3bfcbeb96c39dba8903fde6dbe546
|
|
| BLAKE2b-256 |
433acefe43f94143f5485d12aaf9a1332a6cb6ea39f206d45637d693f13250fd
|