V
vhochstein
Hi,
I have to talk to an http server protected with digest authentication.
I ve used the net-http-digest auth gem followed the example (https://github.com/drbrain/net-http-digest_auth/blob/master/sample/net_http_example.rb) and it worked perfectly.
However, I do not know how I should prepare the second request to the server, which authorizes me, without having to go through the 401 response loop again.
I ve tried to add the same authorization header used in previous request, but well it could nt work...
Does anybody have an example or a solution?
Thanks a lot in advance.
I have to talk to an http server protected with digest authentication.
I ve used the net-http-digest auth gem followed the example (https://github.com/drbrain/net-http-digest_auth/blob/master/sample/net_http_example.rb) and it worked perfectly.
However, I do not know how I should prepare the second request to the server, which authorizes me, without having to go through the 401 response loop again.
I ve tried to add the same authorization header used in previous request, but well it could nt work...
Does anybody have an example or a solution?
Thanks a lot in advance.