Cannot download a file with internet explorer 6 using SSL connection

Hello,
I am working on a application that uses SSL. But when the clicks a button to donwload a file using IE 6 or IE 7, internet explorer shows a error message saying that "The internet explorer cannot open this site". This error dont occur in Firefox, but i have to use Internet Explorer. And the error occurs only if i use https, with http it works fine.
I search the net and i found that internet explorer has a bug, that when the server sends the http header "Pragma: no-cache" or "Cache-control: no-cache,max-age=0,must-revalidate", then the internet explorer doesnt cache the file, and i cannot open it. See here: http://support.microsoft.com/kb/316431/en-us
My problem is that OC4J appears to send this headers automatically. I am using Oracle Enterprise Manager 10g Application Server Control 10.1.3.3.0. Here, is my code to send the file:
HttpServletResponse response = (HttpServletResponse)
FacesContext.getCurrentInstance().getExternalContext().getResponse();
response.setContentType("application/x-download");
response.setHeader("Content-Disposition", "attachement; filename=\"file.pfx\"");
response.setContentLength((new Long(myFile.length())).intValue());
OutputStream out=null;
try {
out = response.getOutputStream();
fis = new FileInputStream(myFile);
int n;
while ((n = fis.available())> 0) {
b = new byte[n];
int result = fis.read(b);
out.write(b, 0, b.length);
if (result == -1) break;
out.flush();
out.close();
} catch (Exception e){
throw new DownloadException("Erro ao enviar arquivo para o stream de download.");
finally{
FacesContext.getCurrentInstance().responseComplete();
You can see that i not send that headers in this code.
Here, is the headers sent to IE when i use https.
HTTP/1.x 200 OK
Date: Wed, 07 May 2008 17:40:28 GMT
Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
Pragma: no-cache
Cache-Control: no-store
Surrogate-Control: no-store
Expires: Thu, 01 Jan 1970 12:00:00 GMT
Content-Length: 5208
Set-Cookie: JSESSIONID=ac1002292008f788e14d0d6e40c29f3185f2fc72e5b9.e3eTb3mTb3yKe34SbhqOaxyTe6fznA5Pp7ftnR9Jrl0; path=/actcers; secure
content-disposition: attachement; filename="file.pfx"
Keep-Alive: timeout=15, max=74
Connection: Keep-Alive
Content-Type: application/x-download
I hope that someone can helpme.
Tanks
Message was edited by:
user635088

Hi!
I don't have a solution fou you, just a few ideas =)
You can check what headers response contains with
response.containsHeader( "your_header_here");
http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/javax/servlet/http/HttpServletResponse.html#containsHeader(java.lang.String)
after that you could set/overwrite those headers that you don't like with, for example:
response.setHeader("Cache-control", "no-cache,max-age=0,must-revalidate");
Aparently Pragma and Cache-control headers should be used in pair, as noted here
http://curl.haxx.se/mail/archive-2005-12/0003.html
quote:"The author of Bad Behavior points out that RFC2616 requires that a
Pragma: header to be accompanied by a Cache-Control: header. From what I
see, it only says "SHOULD" (in section 14.32), but that is still a
strong recommendation and something to be considered, IMHO."
I'm a bit sceptical about you needing to cache the file, but if you feel strong about it, you could read this
http://www.mnot.net/cache_docs/#META
If you're working on SSL there is supposed to be some kind of validation, certificate or something like that. IE6 and 7 both have strong security measures in these regards. Maybe you should look something up in that direction.
Hope I helped.

Similar Messages

  • Cannot download pdf files from internet site with either acrobat pro X or pro XI on windows 8 comput

    cannot download pdf files from internet website with either acrobat pro x or proXI on windows 8 computer.  windows 7, no problem.

    Hi valerieross,
    Acrobat can be used to view pdf's or edit pdf's not download them.
    Check your browser settings.
    If you are referring to viewing pdf's in browser, then please check the following : http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html

  • Cannot download pdf files with adobe

    I still have the same problem I had a month ago I cannot download pdf file from internet sites screen just goes black
    I have recently upgraded software to lion I have the latest adobe software installed still no joy.
    Was never a problem in the past on my IMac

    In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins/AdobePDFViewer.plugin
    If a Finder window opens with that item selected, delete it, then quit and relaunch Safari. Otherwise post again.

  • HT5701 Cannot download pdf files with Safari 6.0.4?

    Cannot download pdf files with Safari 6.0.4

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Inquiry about opening any file with internet explorer

    Dear all,
    i am opening any file with internet explorer on the client machine.but i want to open it as READ-ONLY. so is there any parameter i should add to the command.
    the command i am using is :
    client_host('"\Program Files\Internet Explorer\iexplore.exe " "'||v_file_name||'"'; );
    Thanks in advance

    Hi,
    I don't think there is a way to open a file as read only using Client_Host. But i can give you another suggestion. Change the permission of the file to readonly (may be using chmod command) before opening the file in the browser.
    client_host('chmod -w '||v_file_name);Regards,
    Arun

  • Cannot download PDF files from Internet with Safari.

    What must I do (after resetting Safari) to be able to coherently download PDF files from the Internet

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • I have internet explorer and having problems on working with adobe on internet explorer. i want to stay with internet explorer and use adobe that i think is with Google. i can't work on line  with adobe either because I am not with adobe.What do I do to k

    Need to know how I stay on internet explorer and still be able to use adobe. I have tried everything and nothing seems to work online or offline. help!!!

    Help me to how I can work with adobe on internet explorer. I also can not download online with adobe. What do I do?

  • I cannot download .pdf files with 3.6.13, but I can with Internet Explorer

    I just installed 3.6.13, but had problem with 3.6.12. The screen turns black when the download "starts" and Done appears at the bottom of the screen. Running the Windows Task Manager shows only a less than 1 box spike. Sometimes the screen then goes white seconds later; sometimes it remains black until the screen is "clicked" (possibly has to do with the size of the download).

    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE any Unwanted/Suspicious Extensions (add-ons) -> Restart Firefox
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Zoom -> click "Reset"
    -> go to View Menu -> Page Style -> select "Basic Page Style"
    -> go Tools Menu -> Clear Recent History -> '''''Time range to clear: select EVERYTHING''''' -> click Details (small arrow) button -> place Checkmarks on ALL Options -> click "Clear Now"
    -> go to Tools Menu -> Options -> General -> '''''When Firefox starts : select "Show My Home Page"''''' -> Type the address of the website which you want to be your HomePage e.g. http:www.google.com -> click OK
    You can enable the Trustworthy Add-ons later. Check and tell if its working.

  • I cannot download .pdf files with the new version of Firefox

    Using Firefox 1.5, .pdf files automatically download to my desktop. With Firefox 3.6.13 a new tab/window opens and a box where the document should appear remains blank. When I attempt to 'right' click on the link, it doesn't allow me to download the linked file, only the linked address. I am able to open the .pdf files using another web browser such as Sarfari

    The Google Toolbar "will not be supported on Firefox 5 and future versions." <br />
    http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    http://www.google.com/support/toolbar/bin/answer.py?answer=1342452&topic=15356%29
    The Google Toolbar '''7.1.20110512W''' version does work pretty good in Firefox 5.0 by using the Compatibility Reporter extension. But not every feature works 100%.<br />
    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    http://googlesystem.blogspot.com/2011/06/enable-google-toolbar-in-firefox-5.html

  • I cannot download any file with the new Firefox. I have tried to upgrade again but I still cannot download anything. Thank you!

    '''bold text'''

    See --> [https://support.mozilla.com/en-US/kb/Cannot%20connect%20after%20upgrading%20Firefox Cannot connect after upgrading Firefox]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Unabel to Import XML file in Internet Explorer 9 Using PHP

    I have created a project Using PHP in which i need to import a xml file for my further use, I am able to import XML File  in IE 10 & IE11 but unable to import in IE9. 

    Hi Sunil,
    I recommend that you post in some PHP related forums, since this forum is only for VSTO related questions.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Flash player work with Safari, but not with Internet Explorer

    My flash player had a problem so I uninstalled it.  I had a problem downloading the player with Internet Explorer, so I successfully download it with Safari.  The player works fine with Safari, but I cannot get it to work with Internet Explorer 8.
    I used to have the Flash Player 10 Active X (10.1.85.3), which I had uninstalled.
    I now have the Flash Player 10 Plugin (10.1.85/3)
    The problem I had downloading the player with IE was that the "allow Active X" information bar never appeared and I was unable to see any download at all.
    How do I get flash to work with my Internet Explorer 8 (8.0.7600.16385)?

    This adobe web site worked easily for me, when I needed to install adobe flash JUST for IE8.
    http://get.adobe.com/flashplayer/otherversions/
    All you need to do is choose your OS in the top window, then in the bottom window choose "Adobe Flash Player 10.1 for Windows Internet Explorer", and voila, that is what adobe installs!! Give it a go. I had problems too, before I foud this. Diligent

  • Bridge Browser = "Cannot Download Corporate Files"

    I Have ATT, got bridge app through work around, connects great, everything works except the bridge browser.. it gets me up to my favorites, but when i try to access a webpage, pops up: "Cannot Download Corporate Files"... Anyone else getting this message? Is this ATT blocking it?

    I am also on AT&T--found the bridge workaround, and all worked swell bridged to my torch.
    Today, after plugging into my laptop and dumping some photos onto my playbook, I now find that my bridge browers no longer works!  it gives me back this same message "cannot download corporate files" with any website that I try to go to.
    I called the shiny new playbook support line, and they said they've never heard of this.
    They had me delete the connection and bridge software, reboot both, and reconnect.   It lost the favorites I had already saved on the bridge browser (so it definitely wiped the old off), but same thing...the browser isn't working and still brings back this "cannot download corporate files" error message.
    They said it was probably an AT&T bug and that they are working with AT&T to any day now get the bridge onto the appstore.
    anybody else have any suggestions?  I was worried that this was a websense corporate IS issue with my company's exchange server, but now it sounds like potentially an AT&T blockage?
    thanks for any ideas.
    jdztex

  • I cannot print PDF files within Firefox. I can with Internet Explorer.

    I cannot print PDF files within Firefox. I can with Internet Explorer.

    https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox

  • Blank line in file, but if you download it with Internet Explorer. (??)

    Hello guys.
    I have a new qestion for you.
    My problem is this:
    I have a report that creates a file in Unix.
    When I read that file from an Abap program, the file it's ok. When I download it from a web based system the file has a blank line at the end of the file.
    I tried the CR+FL solution, tried specifying the length of the record in the transfer.
    Nothing works.
    The most strange thing is that if I download the file accesing from Firefox browser, the file it's ok, but with Internet Explorer the bloddy blank line appears...
    Do you have any idea on how to solve this????

    A Z program creates the file (text) in Unix.
    Then, the users download the file using a web application. Just access to the server and download the file to your computer.
    I did a little z program to check if the file was being created correctly (without the blank line), and yes, the file it's ok.
    But I realized that the problem, maybe, is related to the web browser used to access that page.
    So, my question is: Did someone had a similar problem?

Maybe you are looking for

  • While in Lightroom, i press command e to edit in cs5, however my picture won't open in cs5. It was working just fine, then just stopped.

    while in Lightroom, i press command e to edit in cs5, however my picture won't open in cs5. It was working just fine, then just stopped.

  • 4.0EA1 - Connection Color Not Resetting

    In SQL Developer 4.0 EA 1, when you use a connection with a "Connection Color" set in the connection properties, that connection's SQL Worksheet border properly shows the right color. But, when you switch that same worksheet to a different connection

  • How to delete facebook app stuck loading?

    My Facebook app has been stuck loading for 2 days. I can't delete it, I've tried to redownload, but I can't seem to get it to complete loading or delete it to redownload. Any suggestions? Thanks, Mike

  • Goshh, need some help over here!

    hi everyne. need help. U insert a number e.g ( -12 ) the operation will be: (-1) + 2 = 1 e.g : - 42 = (-4) + 2 = -2 I cannot find a way to do that. here is the code for simple sum: int sum = 0;           int aux;           int digit = 0;           Sy

  • Given up the ghost?

    Hi, I decided to Freecycle my formerly-beloved Indigo G3 350MHz iMac and turned it on yesterday, in order to zero out the hard drive and re-install the OS. When I turned it on, everything worked, but there were a lot of little squares on the screen (