title: Apache HttpClient TLS SSL Example
body: <p>I am trying to figure out how to log into a webpage using the apache HttpClient. The page is using ssl TLSv1 handshake protocal. And I have username and password for access credentials. I  have been reading a bunch of stuff online but I am missing something. Could someone with experience with possibly break down exactly what I need to configure the client to do. I have read that an SSL socket must be setup and I have gotten close to getting it configured correctly but I was getting a SSLv2 handshake protocol.</p>
  
  <p>Also I am  not sure if this handshake is failing. I could just simply be not retaining the session information between calls properly. So any help on that would also be appreciated.</p>
  
  <pre><code>    &lt;form name="loginuserform" method="post" action="https://www.site.com/login" id="login_form"&gt;
      &lt;div id="loginFields"&gt;
          &lt;div class="left_input" id="email_input"&gt;
              &lt;input id="emailInput" type="text" name="email" tabindex="1" value=""&gt;
          &lt;/div&gt;
          &lt;div class="left_input" id="password_input"&gt;
              &lt;span class="labelStyle"&gt;Password&lt;/span&gt;
              &lt;input type="password" name="password" tabindex="2"&gt;
          &lt;/div&gt;
          &lt;div class="left_input"&gt;
              &lt;input type="submit" class="primaryActionButton" value="Sign In" tabindex="3"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>Could you explain more on how we I could respond to this form.</p>