Hi Peter,


The following is my testing with HttpURLConnection and
URLConnection :

0
In pure-IE5.0 and pure-NN4.7:

     a    I can use the following code:
           ...
          con=(URLConnection)url.openConnection();
          ...

     b    I can NOT use the following code:
           ...
          con=(HttpURLConnection)url.openConnection();
          con.setRequestMethod("POST");  //or GET
          ...
     Otherwise I will get a Exception like "ClassCastException"  :-) :-)


1
     a   In a Java_Application which runs on J2SE1.3(windows),
          I can do the following:
         ...
         con=(URLConnection)url.openConnection();
         ...

     b   In a Java_Application which runs on J2SE1.3(windows),
          I ALSO can do the following:
         ...
         con=(HttpURLConnection)url.openConnection();
         con.setRequestMethod("POST");
         ...

     c   In a Java_Application which runs on J2SE1.3(windows),
          I ALSO_ALSO:-)  can do the following:
         ...
         con=(HttpURLConnection)url.openConnection();
         con.setRequestMethod("GET");
         ...
         But even if I set "GET" here, in my servlet, "doPost(...)"
         still be "invoked"  :-) :-)


2
Because you use "JavaPlugin", so I guess you can use both the following:
     a   URLConnection
     b   HttpURLConnection



Bo
Sept.26, 2000





Peter Pilgrim wrote:

> I do not understand what you mean.
> ...

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to