Chris Pratt wrote:

> doPut is called whenever an HTTP PUT request is received from a browser.
> doDelete is called whenever an HTTP DELETE request is received from the
> browser.  Normally put is used to transfer a file to the web server and
> delete is used to remove one.  You might want to look at the HTTP spec for
> more information.
>     (*Chris*)
>

To further Chris's answer a little bit:

Some browsers or development environments support the PUT command as a
mechanism to publish updated pages.  An example is Netscape Composer -- when
you choose the "publish" command, you can choose to use a PUT command if your
server supports it, or use FTP transfers if it does not.

I do not know of any web browser that supports a DELETE command (although it
might make sense for something like FrontPage?).  However, you can issue any
HTTP command you want from a Java client application, if you use a
URLConnection with an "http:xxxxx" URL, and then cast it to an
HttpURLConnection.  Once you have done this, you can use setRequestMethod() to
choose which type of HTTP request you wish to make.

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to