A Simple Python Web Server to Echo Back HTTP Request Headers and Data

Опубликовано: 06 Октябрь 2024
на канале: Nick Janetakis
14,798
137

This could come in handy for testing your web app's webhooks and more.

Hit the subscribe button to receive more videos like this!

---

Timestamps:

0:00 -- What we'll be covering in this video
0:21 -- Testing webhooks is one use case for using this tool
1:08 -- Taking a quick peek at the Python code to make it work
1:33 -- Sending a basic GET request with curl
2:41 -- Sending a POST request with a JSON payload using curl
3:35 -- A quick aside to send JSON data from a file with curl
4:30 -- Sending a POST request with form data using curl
5:22 -- Connecting to the web server from a Dockerized web app
8:39 -- It's up on GitHub along with documentation
9:01 -- Using ngrok to make the web server accessible on the internet

Reference links:

https://github.com/nickjj/webserver
https://ngrok.com/

---

Follow along?

Personal Website: https://nickjanetakis.com
Twitter:   / nickjanetakis