The contract type is `' with a response time of 3 business hours.
        A first analysis should be sent before: Fri Apr 04 09:00:01 PST 1997


>Number:         311
>Category:       protocol
>Synopsis:       JDK 1.02 HTTP libraries dislike something
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Apr  3 14:40:01 1997
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        your Web site on 4/3/97
>Environment:
NT 3.51, sp5, Pentium, SuperCede runtime client
>Description:
One of our (SuperCede) customers reported a problem using the URLConnection
class to read the HTML off your page.  In particular, the header shows up in
the input stream, instead of being parsed.

I've only been able to determine that some decision is being made in the
jdk1.02 sun.net.www.* class libraries, which we distribute.   We do not license
the Sun VM, however, so I do not have access to source.  Our customer reports
this is a problem with the Sun JDK1.02 also.

This may be an HTTP/1.1 protocol issue - I hope you can enlighten me or make
this problem go away!
>How-To-Repeat:
Here's a small program which when run using SuperCede, and presumably JDK1.02,
will show unexpected header information being read:

import java.io.*;
import java.net.*;

public class Source1
{
        public static void main (String args[])
        {
                try {
                        URL turl = new URL("http://www.apache.org";);
                        System.out.println( turl.toString() );
                        URLConnection curl = turl.openConnection();
                        System.out.println( curl );
                        InputStream ins = curl.getInputStream();
                        System.out.println( ins );
                        byte[] buff = new byte[10000];
                        int bread = ins.read(buff);
                        System.out.println("\nread "+bread+"\n");
                        if ( bread > 0 ) {
                                String str = new String(buff,0,0,bread);
                                System.out.println(str);
                        }
                        ins.close();
                } catch (Exception ex) {
                        System.out.println(ex);
                }
        }
}
>Fix:
Nope.  Thanks for your time.  Apologies if this is well understood - I tried
searching your problem database for "compatibility" and "1.02" but turned up
nothing.
%0
>Audit-Trail:
>Unformatted:


Reply via email to