Re: validate from a Java program: how to send CSS and receive results
Lea Verou <[email protected]> Mon, 15 Apr 2013 21:30:55 +0300
| Newsgroups | gmane.org.w3c.validator.css |
|---|---|
| Message-ID | <[email protected]> |
I know I’m replying to a very old thread, but I stumbled on the same issue so thought I’d mention the solution for anyone that finds this thread by googling (like I did). You just need to use enctype="multipart/form-data" and the issue is magically solved. :) Lea Verou W3C developer relations http://w3.org/people/all#lea ✿ http://lea.verou.me ✿ @leaverou Eric <[email protected]> wrote on Tue, 5 Jan 2010 11:54:29 +0100 > I try to incorporate a validation in a Java program of mine: a CSS file is > read and sent over the net to the validator. I then expect results back. > Below is a piece of the code. > I use examples from SUN, concerning sending/receiving over an > URLConnection. > > > > I get an error 500 back from the server, along with the error message: > > > > Servlet has thrown exception:java.lang.IllegalStateException: Reader used > > > > What do I do wrong and how can I correct it ? >