Re: http put method

> I'm testing http put meyjhod with jigsaw server. And there's no way to make
> it work.
> I define a PutableDirectory resource (named '/putable'), and I use as
> client, the java api 'upload' that you published in this list.
> 
...
> 
> The answer I get is as follows:
> 
> C:\java\prova>java PutApi cv.txt http://127.1.1.1:8000/putable
> PUT /putable HTTP/1.1
> Date: Wed, 10 Sep 1997 16:47:17 GMT
> Content-Length: 7847
> Content-Type: text/html
> Accept: */*
> Host: 127.1.1.1:8000
> User-Agent: Jigsaw/1.0b
> 
> HTTP/1.1 302 Moved Temporarily
> Date: Wed, 10 Sep 1997 16:47:18 GMT
> Content-Length: 188
> Content-Type: text/html
> Location: http://127.1.1.1:8000/putable/
> Server: 1.0beta1
> 
> Copy done.
> 
> C:\java\prova>
> 
> Where's the problem???
> 
> Thanks
> 
> oooooooooooooooooooooo
>     Pere Mayol de Tord
>        perem@ibm.net
> oooooooooooooooooooooo
> 
> 
> 
> 

 I have compiled you PutApi.java file and I have tested it.

 java PutApi -t text/plain cv.txt http://www43.inria.fr:8007/edit/cv.txt

 and it works fine :

PUT /edit/cv.txt HTTP/1.1
Date: Fri, 12 Sep 1997 07:31:57 GMT
Content-Length: 2161
Content-Type: text/plain
Accept: */*
Host: www43.inria.fr:8007
User-Agent: Jigsaw/1.0b

HTTP/1.1 201 Created
Date: Fri, 12 Sep 1997 07:31:57 GMT
Content-Length: 34
Content-Type: text/html
Location: http://www43.inria.fr:8007/edit/cv.txt
Server: 1.0beta

Copy done.

 I think the file name of the destination must be specified (and the mime type
 too).



- Benoît Mahé -------------------------------------------------------
World Wide Web Consortium                       bmahe@sophia.inria.fr 
Architecture domain - Jigsaw Team               tel : 04 93 65 79 89
---------------------------------------------------------------------

Received on Friday, 12 September 1997 03:41:14 UTC