Re: client -P and PUT method

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 27 Feb 1999 18:25:32 +0100

Alex@wgc.chem.pu.ru wrote:

> Why the line 188 in client.c
> method = xstrdup("PUT");
> is commented? The PUT method is native for -P option.

Mainly because the -P option is misnamed. The purpose of -P is not
really to make a PUT request, it is to provide a request body to the
request. -m is for selecting which method the client command uses. There
are a number of other methods where a request body is needed (POST is a
obvious example).

---
Henrik Nordstrom
Spare time Squid hacker
Received on Sat Feb 27 1999 - 11:12:18 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:46 MST