To my knowledge none of the major browsers support HTML forms using anything but GET and POST. This is a user agent issue; not a server issue. (Some frameworks use JS to intercept form submissions and perform them via XHR, which can use other methods.) I haven't had a chance to take a close look at your code, so I don't have anything to say about your attempts to use XHR.
> On Dec 4, 2014, at 9:56 PM, George Neuner <[email protected]> wrote: > >> On 12/4/2014 8:26 PM, Jay McCarthy wrote: >> Were you not able to run my example? In the sample you sent, your >> cases for delete and put are commented out. > Those functions were commented out because they would not dispatch properly. > > Something is weird. I had to grab a copy of curl ... I'd never used it > before ... but both your code and mine work with curl. At least mine > dispatched properly to the right function - it didn't work because I didn't > know how to send a cookie. > > However, neither your program nor mine works entirely with straight HTML > forms or using XHR (ala Dojo). I tried with Firefox, IE and Chrome. > > I wasn't sure how to translate curl's -d <data> into a PUT form, but if you > set some data using curl, you'll get it back as if a GET was issued for both > the PUT and DELETE forms. > > The XHR result is even weirder but I don't expect you to be able to help > there. xhrPut returns "Resource updated" from your program, but the data > isn't received and whatever data was set is erased. xhrDelete says "file not > found" with your program. My program doesn't dispatch anything with > #:method "put" or #:method "delete" - I get "file not found" for both. > > So what the heck is happening? > George > > > > > <test.html> > ____________________ > Racket Users list: > http://lists.racket-lang.org/users ____________________ Racket Users list: http://lists.racket-lang.org/users

