From: Trans Date: 2007-01-23T14:02:49+09:00 Subject: Re: Lite RESTful Webservlet Benjohn Barnes wrote: > On 22 Jan 2007, at 22:00, Trans wrote: > > > Can anyone give me a quick and dirty account of creating a light- > > weight > > RESTful web-servlet that can be used to pass data and a file or two to > > a server. (I'm thinking webrick and maybe JSON could be used?) > > Anything to get my mind moving in the right direction... > > I'm playing with webrick to try out AJAX at the moment (sans XML). It > sounds like about the right thing for you. Here's the tutorial I'm > following: > > http://microjet.ath.cx/WebWiki/WEBrick.html > > I'm intrigued by Tofu and DIV, but the only docs I've found these are > either Japanese, or hilarious but unenlightening Google translations :) Thanks, that was helpful. I got most of what I want in place, but I'm stuck the upload servlet part. Right now I have the whole file coming across in a cgi parameter and the file's name as another cgi parameter, I know that can't be right. I think I need multipart form data? T.