This is most likely a spelling mistake in the URL. That means using basic auth in httpc looks to me.
:httpc.request(:get, {'http://localhost:8080/', [{'Authorization', 'Basic ' ++ :base64.encode_to_string('test:test')}]}, [], [])
{:ok, {{'HTTP/1.0', 200, 'OK'}, ...}
URL-, URL- 401:
:httpc.request(:get, {'http://localhost:8080/asdf', []}, [], [])
{:ok, {{'HTTP/1.0', 401, 'Unauthorized'}, ...}
:
:httpc.request(:get, {'http://localhost:8080/asdf', [{'Authorization', 'Basic ' ++ :base64.encode_to_string('test:test')}]}, [], [])
{:ok, {{'HTTP/1.0', 404, 'File not found'}, ...}
, ssl, .
, http https. URL- https:// .
"403 ", - 401. 403 , , , 401.
httpc.request(...), .
Beyond the hint: you can use 'text'(in single quotes) instead String.to_character_list("text").