troubleshooting Question

SSL Form Post between IE6 and Apache 2.2 fails (This page cannot be displayed).

Avatar of edigitize
edigitize asked on
PHPWeb BrowsersApache Web Server
5 Comments1 Solution1054 ViewsLast Modified:
The Cry for HELP:
Any assistance and insight you can bring to my situation would be greatly appreciated.  I've spent over 12 hours troubleshooting.  I've also enlisted the help of a peer who spent over 8 hours on the issue.  We were unable to come up with a solution on our own.

The Scenario:
I am attempting to post form data including a file over SSL on IE 6.0 client served by Apache version 2.2 server.  The post fails with "This page cannot be displayed" error. (see simplified form below)  The php code works fine on all three browser versions on the "Old Server" environment.  However, on the "New Server" environment it fails on IE6.

The Theory:
This code works perfectly on IE6, IE7 or Firefox 2.0 with apache 2.0.  Further, this code works perfectly on IE7 and Firefox 2.0 with apache 2.2.  It only fails with the combination of IE6 and apache 2.2 which makes me think it's not a php.ini or apache configuration issue.  I suspect there is some incompatibility with the SSL handshake between Apache 2.2 and IE 6.  Another thought is that it might have something to do with mod_rewrite which is enabled on the "New Server" environment and not enabled on the "Old Server" environment.

The Client:
Windows XP Home

The New Server Environment:
FreeBSD 6.1
Apache 2.2.3
mod_rewrite enabled

Works in IE 7.0.5730.11
Works in Firefox 2.0.0.5 "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070713
Fails in IE 6.0.2900.2180.xpsp_sp2_dgr.050301-1519

The Old Server Environment:
Redhat Linux Fedora 1
Apache 2.0.50

Works in IE 7.0.5730.11
Works in Firefox 2.0.0.5 "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070713
Works in IE 6.0.2900.2180.xpsp_sp2_dgr.050301-1519

The failed php code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
if ($_POST['action']=='post') {
echo $_POST['Field1'] . '<br>';
echo $_POST['Field2'] . '<br>';
echo $_POST['Field3'] . '<br>';
echo $_POST['Field4'] . '<br>';
echo $_POST['Field5'] . '<br><br>';
echo $_FILES['file1']['tmp_name'];
}
?>
<form action="test.php" method="post" enctype="multipart/form-data" name="form2" id="form2">
  <p>Field1
    <input type="text" name="Field1" id="Field1" />
</p>
  <p>Field2
    <input type="text" name="Field2" id="Field2" />
</p>
  <p>Field3
    <input type="text" name="Field3" id="Field3" />
</p>
  <p>Field4
    <input type="text" name="Field4" id="Field4" />
</p>
  <p>Field5
    <input type="text" name="Field5" id="Field5" />
</p>
  <p>
    <input type="file" name="file1" id="file1" />
  </p>
  <p>
    <input type="hidden" name="action" value="post" />
    <input type="submit" name="Submit" id="Submit" value="Submit" />
  </p>
</form>
</body>
</html>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros