FYI, I've entered a defect report: http://restlet.tigris.org/issues/show_bug.cgi?id=428
Best regards, Jerome > -----Message d'origine----- > De : dev dev [mailto:[EMAIL PROTECTED] > Envoyé : samedi 26 janvier 2008 20:22 > À : [email protected] > Objet : Re: POST seems to throw a 500 error code > > 1.1-SNAPSHOT directly from the reslet maven repo. > > Thanks Jerome for answering my questions. > > > On Jan 26, 2008 10:19 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote: > > > > Hi again, > > A similar issue has been fixed in Restlet 1.0.7. Which > version do you run? > > Best regards, > Jerome > > > -----Message d'origine----- > > De : dev dev [mailto:[EMAIL PROTECTED] > > Envoyé : vendredi 25 janvier 2008 09:06 > > À : [email protected] > > Objet : Re: POST seems to throw a 500 error code > > > > > Here is the exception. > > > > an 25, 2008 12:04:23 AM > > com.noelios.restlet.ext.simple.SimpleProtocolHandler handle > > INFO: Exception while consuming the Simple request's > input stream > > java.io.IOException: Broken pipe > > at > > simple.http.MonitoredInputStream.destroy(MonitoredInputStream. > > java:198) > > at > > > simple.http.MonitoredInputStream.read(MonitoredInputStream.java:92) > > at > java.io.FilterInputStream.read(FilterInputStream.java :66) > > at > > com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(Si > > mpleProtocolHandler.java:77) > > at simple.http.Dispatcher.run(Dispatcher.java:83) > > at simple.util.process.Daemon.execute(Daemon.java:121) > > at simple.util.process.Daemon.run(Daemon.java:106) > > > > > > > > On Jan 24, 2008 11:52 PM, dev dev <[EMAIL PROTECTED]> wrote: > > > > > > I just changed the following bookmark example code from > > PUT to POST and i get an 500 status code using Simple > > Connector. What did i do wrong here? It works fine if i > > change it back to use PUT instead of POST. > > > > private static void addUser(String userName, > String password, > > String fullName, String email) { > > Form form = new Form(); > > form.add("user[password]", password); > > form.add("user[full_name]", fullName); > > form.add ("user[email]", email); > > > > Response resp = new > > Client(Protocol.HTTP).post(getUserUri(userName), > > form.getWebRepresentation()); > > System.out.println(resp.getStatus()); > > } > > > > Thanks > > dev > > > > > > > > > > > > >

