> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin
> Jones
> Sent: Friday, 19 January 2001 7:50
> To: [EMAIL PROTECTED]
> Subject: Re: urgent...
>
>
> But only for POST or PUT, whcich this code isn't using
Yes it is. Writing to the output stream of a URLConnection forces
it to do a POST.
>
>
> con.setRequestProperty("Content-Type","java-internal"+objs.getClas
> s().getNam
> e());
> ObjectOutputStream out = new ObjectOutputStream(con.getOutputStream());
> out.writeObject(objs);
>
> you should call con.setDoOutput(true);
> or con.setRequestMethod("POST"); // JDK1.3 and above I think
>
> In fact the code shouldn't even execute.
>
> Thinking about it I assume there should be a call to
> setDoOutput(true) here
> somewhere?
------------- from another post
>> IE returns FileNotFoundException when it can't connect
>
>It's not IE that does this. URLConnection converts EVERY error code into a
>FileNotFoundException
Netscape throws an IOException in this case.
>
> Kevin Jones
> DevelopMentor
> www.develop.com
>
[snip]
Rob Griffin
Quest Software
E-mail: [EMAIL PROTECTED]
Web site: http://www.quest.com
___________________________________________________________________________
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