C:\>telnet www.markbaker.ca
80
Trying 207.236.3.141...
Connected to markbaker.ca.
Escape character is '^]'.
PUT /2002/09/ HTTP/1.0
HTTP/1.1 405 Method Not Allowed
Date: Thu, 23 Jan 2003 21:47:10 GMT
Server: Apache/1.3.23 (Unix)
Allow: GET, HEAD, OPTIONS, TRACE
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>405 Method Not Allowed</TITLE>
</HEAD><BODY>
<H1>Method Not Allowed</H1>
The requested method PUT is not allowed for the URL
/2002/09/index.html.<P>
<HR>
<ADDRESS>Apache/1.3.23 Server at www.markbaker.ca Port
80</ADDRESS>
</BODY></HTML>
Connection closed by foreign host.
Are you being serious or facetious? If you're serious, the method they are talking about is the HTTP method PUT, not a Java method. The response is telling you that the methods GET, HEAD, OPTION, and TRACE are allowed but PUT is not.
If you were being facetious then that's pretty funny.
I'm glad you enjoyed it, but to be quite honest my observation was not intended to have anything to do with Java and everything to do with REST.
I find it quite interesting that Mark "uniform interface" Baker doesn't appear to practice what he preaches, particularly given the questions he has raised on my weblog.
I guess the issue is that he would expect a RESTian to be PUTing or POSTing his data to his own web log. But this is showing that he's not allowing PUT - or POST for that matter.
So he's just giving him a little poke in the side, albeit somewhat obliquely.
Perhaps the bug is that he should have returned a 401? Or perhaps there is no bug, and in the interests of security he's just saying that *you* can't do that.
I don't use HTTP clients to edit or save my stuff because I use ssh & screen to do the vast majority of my work, as it allows for my sessions to migrate between client hosts (something REST is not designed for; remote sessions). That's what works for me, because on any given day, I'm in at least three different locations (plus mobile, with an ssh client on my GPRS Blackberry from my old company).
You're not suggesting that I'm not allowed to use the right tool for my particular needs, are you? 8-)