Skip to main content

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

  1. $ ./WebhookDebugger.py
  2. $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

  1. $ ./WebhookDebugger.py -p 8811 -r '{"msg":"JSON says HI"}' -c "application/json" --ssl-cert path/fullchain.pem --ssl-key path/privekey.pem
  2. $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

  1. $ ./WebhookDebugger.py -p 8811 -c "application/json" forward --url exsample.com --port 443 --use-ssl

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

webhook-debugger-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webhook_debugger-0.0.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

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

Hashes for webhook-debugger-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8550e0e4309b884faed2fb604affe90a4dab7327fd4ddf35a2a5cba28c918dce
MD5 042530c5468e3f1416c9f694ef32a1b3
BLAKE2b-256 2196382ca8dc9b5cd145913bf501634e3b39540710f453cd8feaf9cdfb261c05

See more details on using hashes here.

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

Hashes for webhook_debugger-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b298aeb28a3f269a3904544fb9b8424549bdd1f51f91a848841ac68234dd25
MD5 1ae3bfcbeb96c39dba8903fde6dbe546
BLAKE2b-256 433acefe43f94143f5485d12aaf9a1332a6cb6ea39f206d45637d693f13250fd

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