net-http-digest_auth example using more than one request in a row

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top