How to create a form that use HTTPS?

Posted on 2004-10-27
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
    1 Comment
    LVL 35

    Accepted Solution

    > 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 is an example of cookie checking :-)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    It’s an age old story, whether you’re looking for full-time employment or contract work. In order to land a job, you must have experience.
    Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
    This video Micro Tutorial is the second in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 ( But the ability to create custom scanning profiles a…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    846 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now