mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00

Basic HTTP authorization according to RFC 2617 is implemented. Added an example of its usage with REST handler.
4 lines
216 B
Bash
Executable file
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\")."
|