I'm using Erlang's httpc to make a get request with parameters and with a basic auth header. When used without the header in httpc/1, like this:
url = String.to_char_list("https://endpoint.com/endpoint?param=foo")
:httpc.request(url)
I get the expected 403 unauthorized. However, when I use the httpc/4 like this:
url = String.to_char_list("https://endpoint.com/endpoint?param=foo")
headers = headers ++ [authheader]
httpc.request(:get, {url, headers}, [], [])
I get a 404 not found error. I can IO.puts the url and directly access the resource successfully when adding the auth header manually from the browser. My post routes all work just fine with httpc/4. What's happening here?