/echo_listen

show info when get/post index

Primary LanguageV

echo_listen

Usage

export ECHOLISTEN_HISTORY_ROUTE=./history.log
./echo_listen
[veb] Running app on http://localhost:8080/

Now, you can curl it with POST/GET

curl -X POST -d 'coucou=abc' 'http://localhost:8080/history'
curl -d 'coucou=abc' 'http://localhost:8080/history'
curl 'http://localhost:8080/history'
STARTDELIM ------------------------------------------ ENDDELIM
-------------------- [::1]:47198 ----------------------
-------------------- header
Host: localhost:8080
User-Agent: curl/8.7.1
Accept: */*
Content-Length: 10
Content-Type: application/x-www-form-urlencoded
-------------------- data
coucou=abc
------------------------------------------\n

Build

make