0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
cowboy/examples/basic_auth/start.sh
Ivan Lisenkov 54c6d3fa3a Implement authorization header parsing
Basic HTTP authorization according to RFC 2617 is implemented.
Added an example of its usage with REST handler.
2013-01-30 00:30:05 +04:00

4 lines
216 B
Bash
Executable file

#!/bin/sh
erl -pa ebin deps/*/ebin -s basic_auth \
-eval "io:format(\"Get 401: curl -i http://localhost:8080~n\")." \
-eval "io:format(\"Get 200: curl -i -u \\\"Alladin:open sesame\\\" http://localhost:8080~n\")."