Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


How to create a form that use HTTPS?

Posted on 2004-10-27
Medium Priority
Last Modified: 2010-04-01

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="" 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

when I set a cookie I do it like:

Cookie cookie2 = new Cookie("int_2_name_secure", (String)form.get("cookie_value"));

Is there some method that can tell me if it is possible to set cookies like isCookiesEnable() ... I have not found any?
Question by:fredand44
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 35

Accepted Solution

TimYates earned 180 total points
ID: 12431112
> Is this a common solution:

I think so...  But a more common way of doing it is to have the page that the form is posted from being on https too

that way, the user can see that the page is encrypted before they post their data (a page asknig for important details that is not on https is likely to be not used)

And http://www.fawcette.com/javapro/2002_04/online/servlets_04_23/ is an example of cookie checking :-)

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question