fredand44
asked on
How to create a form that use HTTPS?
Hello!
I need to get some secure cookies from a browser when a user push a button at a form. But how do I tell the form to use HTTPS?
Is this a common solution:
<form action="https://192.168.0.1/int_2/SessionSecureCookies_4d" method="post">
or is should a give the form some other argument?
When I use the above the browser says that it can not create a connection to the server. But perhaps I need to install some certificate at the server?
I use webserver orion 2.0.2 so if any one could give some clues it would be great!
Best regards
Fredrik
BTW
when I set a cookie I do it like:
Cookie cookie2 = new Cookie("int_2_name_secure" , (String)form.get("cookie_v alue"));
cookie2.setMaxAge(10800);
cookie2.setSecure(true);
response.addCookie(cookie2 );
Is there some method that can tell me if it is possible to set cookies like isCookiesEnable() ... I have not found any?
I need to get some secure cookies from a browser when a user push a button at a form. But how do I tell the form to use HTTPS?
Is this a common solution:
<form action="https://192.168.0.1/int_2/SessionSecureCookies_4d" method="post">
or is should a give the form some other argument?
When I use the above the browser says that it can not create a connection to the server. But perhaps I need to install some certificate at the server?
I use webserver orion 2.0.2 so if any one could give some clues it would be great!
Best regards
Fredrik
BTW
when I set a cookie I do it like:
Cookie cookie2 = new Cookie("int_2_name_secure"
cookie2.setMaxAge(10800);
cookie2.setSecure(true);
response.addCookie(cookie2
Is there some method that can tell me if it is possible to set cookies like isCookiesEnable() ... I have not found any?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.