472,342 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,342 software developers and data experts.

IE under HTTPS with a file input gives a page cannot be found

Client page: <input type="file".....>
Server: Apache, OC4J, J2EE app
XP, SP1 and updates

Works perfectly under HTTP.
However, under HTTPS the user needs to hit the submit button really
fast to
avoid a "page cannot be displayed". All other interaction with the
application works well.

As a workaround one can set the http-connection on the server as
use-keep-alives = "false" or increase the
oracle.j2ee.http.socket.timeout.

In my opinion this is a bug in IE as the browser does not make contact
to
the server before displaying the error. I do not see this bug in the
buglist
of IE.
Does anyone else has experienced the above?
--
Beste regards,

Chris

Feb 16 '06 #1
6 4202
VK

chris wrote:
Client page: <input type="file".....>
Server: Apache, OC4J, J2EE app
XP, SP1 and updates

Works perfectly under HTTP.
However, under HTTPS the user needs to hit the submit button really
fast to
avoid a "page cannot be displayed".


"Really fast" after what? After a local file is chosen for input-file?
That cannot be true.
"Page cannot be displayed" is only possible with a failed request, and
request cannot fail until you submit the form. So there is something
else in your situation you shoud possibly explain.

Feb 16 '06 #2
Thanks for your reply.

Really fast depends on the oracle.j2ee.http.socket.timeout. In my case,
10 seconds after choosing a local file as input-file..
It is a strange problem only occuring under HTTPS with a server-setting
of use-keep-alives=true. This is regarding performance the recommended
setting. We use a web-cache so use-keep-alives can be set to false
without performance suffering too badly.

The HTML:
<form name="PilotageExemptionsUploadFormBean" method="post"
action="/referencedata/pilotageexemptions/pilotageexemptions.do"
enctype="multipart/form-data">
<table class="ContentTable" cellspacing="1">
<tr>
<td class="ContentCell" width="20%">Bestand</td>
<td class="ContentCell" width="20%"><input type="file"
name="fileName" value="" style="width: 250px"></td>
</tr>
</table>
<br>

<div align="right">
<input class="InputButton" type="submit" style="width: 150px"
onClick="doAction('returnToStart','true'); return false;"
value="Cancel">
<input class="InputButton" type="submit" style="width: 150px"
onClick="doAction('save','true'); return false;" value="Laad">
</div>
</form>

Feb 16 '06 #3
Extra comment: The error only occurs after the user hits the submit
button.

Feb 16 '06 #4

chris wrote:
Extra comment: The error only occurs after the user hits the submit
button.
As VK said from above, the page containing the file upload form is not
the problem. It is only after you hit submit which causes the problem.
<form name="PilotageExemptionsUploadFormBean" method="post"
action="/referencedata/pilotageexemptions/pilotageexemptions.do"
enctype="multipart/form-data">


After you have submitted your form, the request will be sent to the URI
that you have given in the action attribute. Since the page cannot be
found, go ensure that the page, in this case,
/referencedata/pilotageexemptions/pilotageexemptions.do, can be reached.

Feb 16 '06 #5
Thank you for replying.
The page can be reached. If the user hits the submit button fast enough
it is reached. Our webapp both runs under http and https. Under http
the page is always reached. Under https the only way to fix the problem
of "page cannot be displayed" seems to be to
set use-keep-alives to false or increase the
oracle.j2ee.http.socket.timeout considerably.

I also noticed the browser not contacting the server when the problem
occurs.
As said there are a few problems with https noticed by Microsoft and
other usegroups but this particular one I did not encounter.
I think it is a particular IE under XP problem.

Feb 16 '06 #6
VK

chris wrote:
Thank you for replying.
The page can be reached. If the user hits the submit button fast enough
it is reached. Our webapp both runs under http and https. Under http
the page is always reached. Under https the only way to fix the problem
of "page cannot be displayed" seems to be to
set use-keep-alives to false or increase the
oracle.j2ee.http.socket.timeout considerably.

I also noticed the browser not contacting the server when the problem
occurs.
As said there are a few problems with https noticed by Microsoft and
other usegroups but this particular one I did not encounter.
I think it is a particular IE under XP problem.


There is nothing wrong with HTTPS support under IE.
Definitely frequent hit on the submit doesn't affect on HTTPS protocol.

But HTTPS is a *very* expensive protocol as it requires every byte to
be encoded before send to SSL to either side (this is why btw it is a
very bad idea to use large/numerous pictures on HTTPS server).

It is possible to guess that IE opens channel when the form ready for
submission (thus the upload file is converted into base64). It is also
possible to guess that the actual data transmission starts only when
data is ready (thus base64 crypted by the public key). The delay
between two events may lead to timeout if server socket is too
"impatient". Numerous submits create a request queue so finally one of
requests has something to send with success.
I would suggest to use the standard in-out schema instead: HTTPS is
used for secure authentification only, after that you're working with
regular HTTP.

Nothing JavaScript can do for you though.

Feb 16 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I...
0
by: Fie Fie Niles | last post by:
At our client site, when I tested a simple ASP page like the following: <%Session("test") = "this is testing"%> they got an error either "HTTP 500...
9
by: YoBro | last post by:
Hi, Is this possible, if so how would you go about it. I have a reasonably large form that includes 6 file input fields. I wanted to create an...
24
by: jrefactors | last post by:
I have an upload file operation in the web application. UploadForm.jsp is the form, and UploadAction.jsp is the form processing. The web server is...
2
by: ypul | last post by:
on my local server i am getting ".net error" of "page not found " but on my hosting server I am not getting .net error ...I am getting the normal...
0
by: Chris Carter | last post by:
Hi, I created this HttpHandler, very simple: using System; using System.Web; namespace HttpHandlerTest { public class HelloWorldHandler :...
6
by: tshad | last post by:
I have an upload file input as: <input id="MyFile" style="width:300px" type="File" runat="Server"> This works fine, but I find that if my page...
3
by: Andee | last post by:
I have written an asp.net application that has been running fine on just the server. A client on the LAN will however always gives "The Page...
2
by: Claudia Fong | last post by:
I got this error after creating the virtual directory The page cannot be found The page you are looking for might have been removed, had its name...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.