W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1997

Re: http put method

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Fri, 12 Sep 1997 09:40:50 +0200
Message-Id: <199709120740.JAA00677@www43.inria.fr>
To: "Pere Mayol de Tord" <perem@ibm.net>
cc: <www-jigsaw@w3.org>, bmahe@www43.inria.fr
> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:26 GMT