This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Authentication in Servlet  RSS feed

 
Jhonnathan Emilio Cardona Saineda
Ranch Hand
Posts: 38
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I need to authenticate users, but does not work. I have just this in the Servlet:

the output is
auth: null
in the client i have this:


so i get 200 but the output in the servlet is always null. if I place this:
client.getParams().setAuthenticationPreemptive(true);
i get 401 and the output in the servlet is always null
if I place this:
method.setDoAuthentication(true);
nothing happens
What happens? What is wrong? How I can get the username/password?? thank you very much for the help


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!