Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Encrypting URL in Address Bar

 
swati bannore
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I ve an html Form which accepts UserName and Password.On submit, I am passing both the values to JSP file say ,validate.jsp which will validate the user and password and accordingly display the data.
Now, When I say submit in form, I can see username and password values in the URL in the address bar. Is there any way to hide this ?
Help,Thx
Swati
 
Shubhrajit Chatterjee
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in your html form use method="post"
like
<form name="myform" method="post" action="my.jsp">
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, using the POST method will stop the form details from being transmitted as part of the URL.
If you truly want to ensure that this information is encrypted between the client and the server though, you must use something like HTTPS on top of this because POST requests are still made in "plain text", even though they are not part of the URL.
Hope that helps
Simon
 
swati bannore
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx Shubhrajit and Simon.
I am using POST and shall explore HTTPS as told by Simon.
Swati
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic