Problem downloading ZIP file with Squid-3.0

Hi,
I have upgraded my Linux CentOS squid proxy servers to Squid version 3.0. Since then I can not download the following file it just hangs :
http://download.oracle.com/otn/java/sqldeveloper/sqldeveloper-1.5.5.59.69.zip
I dont see any error in the squid logs or on my firewall.
I can however download it on one of the older servers still running Squid version 2.6.
It is just very strange as I can download ZIP files from any other website with the upgraded servers.
Any ideas on what might cause this ?
Thanks
JHEFER
Edited by: jhefer on Nov 19, 2009 12:15 AM

If you have already interested, I found the solution. The problem is that oracle website (and probably others) uses “Vary” field in the header and squid doesn’t support this (by default). You have to download squid sources on http://www.squid-cache.org/Versions/ and compile these with “--enable-http-violations” parameter :
*./configure ‘--enable-http-violations’ ‘…’ ‘…’*
make all
make install
I hope this solution will be very useful to you.
Laurent

Similar Messages

  • Problem on windows xp with downloaded zip file

    Hi,
    I have written a JSP to download file which is as follows
    try
    response.setContentType("application/download");
    response.setHeader("Content-Disposition","attachment;filename=<FileName>");
    int iRead;
    FileInputStream stream = null;
    try
    File f = new File(<FilePath>);
    stream = new FileInputStream(f);
    while ((iRead = stream.read()) != -1)
    out.write(iRead);
    out.flush();
    finally
    if (stream != null)
    stream.close();
    catch(Exception e)
    //out.println("Exception : "+e);
    After downloading zip file, could not extract files on windows XP by using any tool or built-in extractor i.e. compressed(zipped)folders (error: compressed folder invalid or corrupted).
    But this works on win2k or win98
    How can i work with it or can anyone tell me a solution to handle such a problem.
    Thanks in advance.
    Rajesh
    [email protected]

    This could be a problem with the built-in ZIP program in Win XP - it's possible that the ZIP you are downloading (uploading?) is simply incompatible with the XP program. In Win 98 & 2000, you would have to use your own ZIP program, e.g. Winzip, and that can handle more formats that the XP program.
    Try installing the same ZIP program that you have on w98/2k on your XP machine, and see if you can open the uploaded file using it.

  • Finder crashed after downloading a zip file with pictures

    First my desktop icons disappeared. Then the finder, appears and disappears every 3 seconds. Simultaneously the Finder also disappears and reappers in the "Force Quit Application" window. This started after I downloaded a zip file with family photos from a friend (on a windows machine). Rebooted off the Tiger installation dick. Running disk utility off the Tiger installation disk did not help. Permissions were repaired but the finder is still crashing Tried relaunching the Finder from the "Force Quit Application" window. No help. Ran Virex (outdated by 12 months) without any benefit.
    Any suggestions would be appreciated.

    There's a shameful glitch in Finder where if you drag certain attachments off a mail document onto the Desktop the Finder will do its quit/relaunch jitter bug--will also do it for illegally named files on the Desktop, and will hang for dang near forever it you accidently drop 100s of files onto the Desktop. The easy solution is to start the affected machine in target disk mode, hook it up by firewire to another Mac, then navigate to the affected user's Desktop folder and move the funky file or files into a new folder.
    Francine
    Francine
    Schwieder

  • Cannot extract Zip file with Winzip after zipping with java.util.zip

    Hi all,
    I write a class for zip and unzip the text files together which can be zip and unzip successfully with Java platform. However, I cannot extract the zip file with Winzip or even WinRAR after zipping with Java platform.
    Please help to comment, thanks~
    Below is the code:
    =====================================================================
    package myapp.util;
    import java.io.* ;
    import java.util.TreeMap ;
    import java.util.zip.* ;
    import myapp.exception.UserException ;
    public class CompressionUtil {
      public CompressionUtil() {
        super() ;
      public void createZip(String zipName, String fileName)
          throws ZipException, FileNotFoundException, IOException, UserException {
        FileOutputStream fos = null ;
        BufferedOutputStream bos = null ;
        ZipOutputStream zos = null ;
        File file = null ;
        try {
          file = new File(zipName) ; //new zip file
          if (file.isDirectory()) //check if it is a directory
         throw new UserException("Invalid zip file ["+zipName+"]") ;
          if (file.exists() && !file.canWrite()) //check if it is readonly
         throw new UserException("Zip file is ReadOnly ["+zipName+"]") ;
          if (file.exists()) //overwrite the existing file
         file.delete();
          file.createNewFile();
          //instantiate the ZipOutputStream
          fos = new FileOutputStream(file) ;
          bos = new BufferedOutputStream(fos) ;
          zos = new ZipOutputStream(bos) ;
          this.writeZipFileEntry(zos, fileName); //call to write the file into the zip
          zos.finish() ;
        catch (ZipException ze) {
          throw ze ;
        catch (FileNotFoundException fnfe) {
          throw fnfe ;
        catch (IOException ioe) {
          throw ioe ;
        catch (UserException ue) {
          throw ue ;
        finally {
          //close all the stream and file
          if (fos != null)
         fos.close() ;
          if (bos != null)
         bos.close();
          if (zos != null)
         zos.close();
          if (file != null)
         file = null ;
        }//end of try-catch-finally
      private void writeZipFileEntry(ZipOutputStream zos, String fileName)
          throws ZipException, FileNotFoundException, IOException, UserException {
        BufferedInputStream bis = null ;
        File file = null ;
        ZipEntry zentry = null ;
        byte[] bArray = null ;
        try {
          file = new File(fileName) ; //instantiate the file
          if (!file.exists()) //check if the file is not exist
         throw new UserException("No such file ["+fileName+"]") ;
          if (file.isDirectory()) //check if the file is a directory
         throw new UserException("Invalid file ["+fileName+"]") ;
          //instantiate the BufferedInputStream
          bis = new BufferedInputStream(new FileInputStream(file)) ;
          //Get the content of the file and put into the byte[]
          int size = (int) file.length();
          if (size == -1)
         throw new UserException("Cannot determine the file size [" +fileName + "]");
          bArray = new byte[(int) size];
          int rb = 0;
          int chunk = 0;
          while (((int) size - rb) > 0) {
         chunk = bis.read(bArray, rb, (int) size - rb);
         if (chunk == -1)
           break;
         rb += chunk;
          }//end of while (((int)size - rb) > 0)
          //instantiate the CRC32
          CRC32 crc = new CRC32() ;
          crc.update(bArray, 0, size);
          //instantiate the ZipEntry
          zentry = new ZipEntry(fileName) ;
          zentry.setMethod(ZipEntry.STORED) ;
          zentry.setSize(size);
          zentry.setCrc(crc.getValue());
          //write all the info to the ZipOutputStream
          zos.putNextEntry(zentry);
          zos.write(bArray, 0, size);
          zos.closeEntry();
        catch (ZipException ze) {
          throw ze ;
        catch (FileNotFoundException fnfe) {
          throw fnfe ;
        catch (IOException ioe) {
          throw ioe ;
        catch (UserException ue) {
          throw ue ;
        finally {
          //close all the stream and file
          if (bis != null)
         bis.close();
          if (file != null)
         file = null ;
        }//end of try-catch-finally
    }

    Tried~
    The problem is still here~ >___<
    Anyway, thanks for information sharing~
    The message is:
    Cannot open file: it does not appear to be a valid archive.
    If you downloaded this file, try downloading the file again.
    The problem may be here:
    if (fos != null)
    fos.close() ;
    if (bos != null)
    bos.close();
    if (zos != null)
    zos.close();
    if (file != null)
    file = null ;
    The fos is closed before bos so the last buffer is not
    saved.
    zos.close() is enough.

  • When i download zip files it says decompression failed

    when i download zip files on some occasions i get decompression failed

    The current version of the built-in Archive Utility has problems with some zip files. Use "The Unarchiver" instead -- free in the App Store.

  • Problem downloading a file via http

    Hi
    I'm just getting started with WLS (sp5) and am having a problem downloading
    a file via http. The document is stored in the main html docs directory and
    whenever I link to it or try to download it directly (eg:
    http://<host>:<port>/myfile.doc) I get the following error in a message box:
    Your current security settings do not allow this file to be downloaded.
    Can anyone point me in the right direction as to where I grant permissions
    to do this - I've tried using the weblogic.security.URLAclFile and adding
    the directory as a weblogic.io.fileSystem (a desperation move, I know).
    Thanks in advance,
    Peter Villiers

    PLEASE IGNORE THIS POST
    The problem was caused by someone (me though I honestly don't remember doing
    it), setting the content security level to high in my web browser which
    stopped this type of download.
    Peter

  • Firefox doesn't reconvert special characters in the file names when download a file with any special characters in the file name

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/815207]</blockquote><br>
    if i try to download a file with any special characters in file name (e.g. File_Name.pdf), it doesn't reconvert them from the "sanitize url" process and download the file an incorrect name (e.g. File%5FName.pdf).
    This is really annoying.
    Thank you for your patient

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]

  • How do I get a download zip file from firefox to my desktop

    I download zip files from different web sites and they go to the download folder in firefox, but I can't access them to open,unzip, or work with them on my computer offline. How can I move them from the download folder in firefox to my computer desktop?

    Hi,
    In order to open ZIP files, you have to download an app to enable the opening of the ZIP. Here's one you can use: https://play.google.com/store/apps/details?id=com.winzip.android
    Next, when you install that, open it and go to your Download directory. It should either be in sdcard0, sdcard, or sdcard1, then go to Download.
    Once you find it, touch and hold the file, then click '''Unzip here''' and it will extract the files in the ZIP folder.
    Let me know if this works!

  • Zip files with webstart

    Is there a way to have webstart download zip files to the client and allow them to be used in the trusted environment. Obviously I'm having a problem, since the zip file can't be signed like my jar's can.

    Is there a way to have webstart download zip files to
    the client and allow them to be used in the trusted
    environment.It is possible to download zip files into memory and use them there or write them to disk (if you have file write permissions in your sandbox).
    The posting on how to roll your own JRE (search this forum or the unofficial JWS FAQ) features an extension installer that grabs and decodes jar files from an URL. You could whack down that code for your use.
    Note that this file is downloaded by your app and not by the JWS class loader and thus needs no signing.
    Regards,
    Marc

  • SLD - Export Business System: 404 Not found while downloading ZIP-File

    Hi, well we did a complete export of SLD to another XI-System. This worked fine so far except that one business System was not properly "installed" in SLD.
    Therefore we want to export this single business system via option "Export" but we receive an 404 Error: The requested resource does not exist. when trying to download the given zip-file!
    I read in OSS that this error occurs in XI-systems with SP <12 and SAP suggest to upgrade to 12
    Well that's not an appropriate solution!
    Does somebody can help how we can download this zip-file with the business system in it?!
    Or is there some workaround i am not familiar with?!
    Thx in advance!

    Ok Prateek,
    we had two same Technical Systems with two differnet hosts given in the SLD of DEV & PROD System.
    After decision to devide both systems, means to seperate SLDs we copied the whole SLD from DEV to PROD. So there were some conflict with this two technical systems because during import of CIM-Data the business systems got switched up.
    Therefore we thought we have to export the business system given in DEV SLD to import this business system in PROD SLD. But the workaround is that we simply assign the wrong imported business system to the right technical system (in PROD SLD)
    That's it! br

  • Decrypt Zip File with AES Cryptography

    Hi,
    I want to make a programm to decrypt a zip file with aes cryptography in java with gui.
    Our professor as a help they gave us that code [http://code.google.com/p/winzipaes/source/browse/winzipaes/src/de/idyl/crypto/zip/AesZipFileDecrypter.java?r=4].
    I search in Internet to find out same help for the project but I understood , that other programm don't use all the packages in the example.And i am little confused.
    I want some help to find out a solution for this problem.And if you have a similar programm jusy sent it to occupy how I resolve my own problem.

    As your professor has given you the crypto code and wants you to write the GUI code this is not a Cryptography question at all. Locking this thread.

  • Decrypt Zip File with 128bit AES

    Hello my name is George ,
    I want to make a program to decrypt a zip file with 128-bit AES Algorithm using Brute Force and Dictionary Attack.
    Because it is my first time I try to make something with the encrytpion libraries I don't know much.
    Because that is an exercise they told us to use this library [http://www.javamex.com/arcmexer/].
    So I want to give me some help.
    Any help is welcoming.

    Hi.
    I want to make a program to read a zip file with a password(aes encrytpion) and I foun the password.
    At first i know the password and I want to do If I write it wright.
    I read a zip file but when I try to read it with encryption I take that exception.
    That is the program
    import com.javamex.arcmexer.*;*
    *import java.io.*;
    import java.lang.*;*
    *import java.util.*;
    public class Decryption {
         public static void main(String[] args){
              String pw = "12345678";
              System.out.print("\rEnter the filename to be encrypted (full path is needed if not located at the same directory): ");
                    try {
                   FileInputStream f = new FileInputStream("C://Giorgos.zip");
                   ArchiveReader r = ArchiveReader.getReader(f);
                   ArchiveEntry entry =r.nextEntry();     
                   BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
                            while ((entry = r.nextEntry())!= null) {
                        String filename = entry.getFilename();
                                    InputStream in = entry.getInputStream();
                                    String inputLine = input.readLine();
                                    if (inputLine.equalsIgnoreCase("yes")) {
               +BufferedReader br = new BufferedReader(new InputStreamReader(entry.getInputStream(filename)));+  //HERE IS MY PROBLEM
                                        +String line;+
                                         +while ((line = br.readLine())!= null) {+
                                        +System.out.println(line);+
    <                                    <em>input.close();+
    <                       <em>// }+
    +               if (entry.isProbablyCorrectPassword(pw)){+
    +                    System.out.println("Password found: "+  pw);
              } catch (Exception e){
                        System.out.println("Exception raised!");
    }And the exception is:
    *{color:#0000ff}C:\Documents and Settings\Ergasia\Decryption\src\Decryption.java:26: getInputStream() in com.javamex.arcmexer.ArchiveEntry cannot be applied to (java.lang.String)*
    *BufferedReader br = new BufferedReader(new InputStreamReader(entry.getInputStream(filename)));{color}*

  • Decompress ZIP file with Password

    Hi all,
    Does anybody know how to decompress a ZIP file with password protection?
    I have a decompress code, but I don't know how to insert the pass.
    Any solution?
    Regards

    I'm running out of suggestions over here.
    Your exact command line yields this result:
    zip warning: name not matched: in.txt
    zip error: Nothing to do! (out.zip)
    Well, it should, as I don't have an in.txt. Handing it an existing file, I get this:
    zip -P pass out.zip result.txt
      adding: result.txt (deflated 7%)
    .. and opening in the Finder correctly prompts me:
    so there must be something wrong with your system.
    Very Long Shot: What version do you get when you type this? (I can't imagine this is the actual problem, but you never know.)
    zip --version
    Mine is
    Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
    This is Zip 3.0 (July 5th 2008), by Info-ZIP.
    Currently maintained by E. Gordon.  Please send bug reports to
    the authors using the web page at www.info-zip.org; see README for details.
    Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip,
    as of above date; see http://www.info-zip.org/ for other sites.
    Compiled with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) for Unix (Mac OS X) on May 25 2011.

  • Problem unzipping larger files with Java

    When I extract small zip files with java it works fine. If I extract large zip files I get errors. Can anyone help me out please?
    import java.io.*;
    import java.util.*;
    import java.net.*;
    import java.util.zip.*;
    public class  updategrabtest
         public static String filename = "";
         //public static String filesave = "";
        public static boolean DLtest = false, DBtest = false;
         // update
         public static void main(String[] args)
              System.out.println("Downloading small zip");
              download("small.zip"); // a few k
              System.out.println("Extracting small zip");
              extract("small.zip");
              System.out.println("Downloading large zip");
              download("large.zip"); // 1 meg
              System.out.println("Extracting large zip");
              extract("large.zip");
              System.out.println("Finished.");
              // update database
              boolean maindb = false; //database wasnt updated
         // download
         public static void download (String filesave)
              try
                   java.io.BufferedInputStream in = new java.io.BufferedInputStream(new
                   java.net.URL("http://saveourmacs.com/update/" + filesave).openStream());
                   java.io.FileOutputStream fos = new java.io.FileOutputStream(filesave);
                   java.io.BufferedOutputStream bout = new BufferedOutputStream(fos,1024);
                   byte data[] = new byte[1024];
                   while(in.read(data,0,1024)>=0)
                        bout.write(data);
                   bout.close();
                   in.close();
              catch (Exception e)
                   System.out.println ("Error writing to file");
                   //System.exit(-1);
         // extract
         public static void extract(String filez)
              filename = filez;
            try
                updategrab list = new updategrab( );
                list.getZipFiles();
            catch (Exception e)
                e.printStackTrace();
         // extract (part 2)
        public static void getZipFiles()
            try
                //String destinationname = ".\\temp\\";
                String destinationname = ".\\";
                byte[] buf = new byte[1024]; //1k
                ZipInputStream zipinputstream = null;
                ZipEntry zipentry;
                zipinputstream = new ZipInputStream(
                    new FileInputStream(filename));
                zipentry = zipinputstream.getNextEntry();
                   while (zipentry != null)
                    //for each entry to be extracted
                    String entryName = zipentry.getName();
                    System.out.println("entryname "+entryName);
                    int n;
                    FileOutputStream fileoutputstream;
                    File newFile = new File(entryName);
                    String directory = newFile.getParent();
                    if(directory == null)
                        if(newFile.isDirectory())
                            break;
                    fileoutputstream = new FileOutputStream(
                       destinationname+entryName);            
                    while ((n = zipinputstream.read(buf, 0, 1024)) > -1)
                        fileoutputstream.write(buf, 0, n);
                    fileoutputstream.close();
                    zipinputstream.closeEntry();
                    zipentry = zipinputstream.getNextEntry();
                }//while
                zipinputstream.close();
            catch (Exception e)
                e.printStackTrace();
    }

    In addition to the other advice, also change every instance of..
    kingryanj wrote:
              catch (Exception e)
                   System.out.println ("Error writing to file");
                   //System.exit(-1);
    ..to..
    catch (Exception e)
    e.printStackTrace();
    }I am a big fan of the stacktrace.

  • Problem opening PDF files with adobe

    I cannot get adobe to open my pdf files. Not from internet nor from desktop.
    I downloads fine,. I have installed and reinstalled several times.
    If I try to open it looks like it opens but closes immediately. I tried to open adobe, but nothing. A grey screen and that's it. I cannot access the help button

    Yes, I finally got it working using number 2:-) Thank you very much
    2013/8/1 Pat Willener <[email protected]>
       Re: Problem opening PDF files with adobe  created by Pat Willener<http://forums.adobe.com/people/pwillener>in
    Adobe Reader - View the full discussion<http://forums.adobe.com/message/5557146#5557146

Maybe you are looking for

  • Installing oracle db in linux, how to know if it's running?

    Hi all, I have installed oracle 9i in my red hat linux box, but I'm getting few problems (Logging as root): 1) if I type lsnrctl status i get: Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)) STATUS of the LISTENER Alias LISTENER Vers

  • Resetting BB ID with new email addres

    I am trying to log into my BB ID to update my email address but have forgotten the password.  I went to the 'reset password' option and filled in my details and it sent an email with instructions to reset my password to the email account linked to my

  • Insert document attached located in sap server(=legacy syst)

    Hello, I wish to program an interface to insert document attached (in particular : the pictures) in the Crm product in a specified repertory. (transaction : “COMMPR01”, tab : « Document ») I found and tested methods CL_CRM_DOCUMENTS-CREATE_WITH_FILE

  • Cannot open TIFF files since installing iTunes and QuickTime Player.

    iTues+Quicktime is preventing use of Alternatiff, that is a Firefox plug-in TIFF image viewer, from displaying the image. Instead the Quicktime symbol appears but is unable to display the image. I uninstalled iTunes and without any other change, the

  • Enable / Disable selection screen block

    Hi, could u pls tell me how do I enable/disable selection screen block written below based on radio button selected?? Block to be enabled / disabled : *----APO Version and RFC destination block SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text