it's me again with another authentication problem.
While i have seen that basic authentication in http is implemented, i'm
having problems to use it.
First step is to create a go http server which requests basic
authentication of the client. As far as i've seen there is no switch or
something like that to enable that. I experimented with calling
http.Error(rw, http.StatusUnauthorized), but this didn't help. Is basic
authentication actually supported on the server side?
Second step is to try this with a websocket connection, client as well
as server. Could someone tell me if experimenting with this could lead
to a success, before i put time into the experiments?
Another thing is generating http request where the server requires basic
authentication. There are these handy functions like http.Get(), but i'm
afraid i can't use them and i have to create a request on my own and set
the authentication with SetBasicAuth()?
bye
Norbert
Hi,
it's me again with another authentication problem.
While i have seen that basic authentication in http is implemented, i'm having problems to use it.
First step is to create a go http server which requests basic authentication of the client. As far as i've seen there is no switch or something like that to enable that. I experimented with calling http.Error(rw, http.StatusUnauthorized), but this didn't help. Is basic authentication actually supported on the server side?
Another thing is generating http request where the server requires basic authentication. There are these handy functions like http.Get(), but i'm afraid i can't use them and i have to create a request on my own and set the authentication with SetBasicAuth()?
> It's not automatic, but it's two lines to trigger the client getting the
> prompt, and a couple more to check the password. I did it here:
Oh great, this is useful help!
Norbert