6 Replies Latest reply on Aug 7, 2006 4:57 PM by 843838

    Http zip exception  ?? Any ideas?? Need Help Urgent

    843838
      I do not know where to put this posting but here is my problem ..

      I authenticate the site everything is ok but can not read the page...

      Any Ideas.. the same script woks for a different website...
                   HTTPConnection con = new HTTPConnection("www.mywebsitename.com");
                   HTTPResponse   rsp ;
                   rsp = con.Get("mylink/andsome.htm?ID=170522792");
                  System.out.println("1");
                  if (rsp.getStatusCode() >= 300) {
                      System.err.println("Received Error: "+rsp.getReasonLine());
                      System.err.println(rsp.getText());
                  } else {       // stream = rsp.getInputStream();
                       System.out.println("2");
                       int dat = rsp.getStatusCode();
                        System.out.println("Status code-->"+dat);
                       String data = rsp.getText();
                      
                           System.out.println("Data is -->"+data);
                  }
       
       
      Here is the output...
       
      1
      2
      Status code-->200
      java.util.zip.ZipException: unknown compression method
      Error:-->java.util.zip.ZipException: unknown compression method