Goliath 1.0.1-J での転送テスト

ドロップすると、すぐに終わってしまう。ログを出させてみる。

====================== Outgoing Request ======================
HEAD /others/KNOPPIX_V4.0DVD-2005-%234E5F9.iso HTTP/1.0
Content-Type: text/plain; charset="us-ascii"
User-Agent: Goliath/1.0.1 (Macintosh-Carbon; PPC)
Host: 192.168.0.201
Connection: Close
====================== Incoming Response ======================
HTTP/1.1 404 Not Found
Date: Fri, 28 Oct 2005 04:54:32 GMT
Server: Apache/2.0.54 (Debian GNU/Linux) DAV/2
Connection: close
Content-Type: text/html; charset=iso-8859-1

すぐに切れている。ひょっとしてファイル名が悪いのかな?
KNOPPIX_V4.0DVD-2005-08-16-EN.isoなんだけど、エンコードされると"KNOPPIX_V4.0DVD-2005-%234E5F9.iso"1になっているのか?
無難にtest.isoにファイル名をかえてやってみる。

====================== Outgoing Request ======================
HEAD /others/test.iso HTTP/1.0
Content-Type: text/plain; charset="us-ascii"
User-Agent: Goliath/1.0.1 (Macintosh-Carbon; PPC)
Host: 192.168.0.201
Connection: Close
====================== Incoming Response ======================
HTTP/1.1 404 Not Found
Date: Fri, 28 Oct 2005 05:02:12 GMT
Server: Apache/2.0.54 (Debian GNU/Linux) DAV/2
Connection: close
Content-Type: text/html; charset=iso-8859-1

サーバー側でのパス情報が正常に取れないのかな?
小さいファイルで、ログをチェックしてみる。

====================== Outgoing Request ======================
HEAD /others/snap.jpg HTTP/1.0
Content-Type: text/plain; charset="us-ascii"
User-Agent: Goliath/1.0.1 (Macintosh-Carbon; PPC)
Host: 192.168.0.201
Connection: Close
====================== Incoming Response ======================
HTTP/1.1 404 Not Found
Date: Fri, 28 Oct 2005 05:04:53 GMT
Server: Apache/2.0.54 (Debian GNU/Linux) DAV/2
Connection: close
Content-Type: text/html; charset=iso-8859-1
====================== Outgoing Request ======================
PUT /others/snap.jpg HTTP/1.1
MIME-Version: 1.0
Content-Type: image/jpeg
User-Agent: Goliath/1.0.1 (Macintosh-Carbon; PPC)
Content-Length: 42794
Host: 192.168.0.201

転送されるデータの実体が続く。

====================== Incoming Response ======================
HTTP/1.1 201 Created
Date: Fri, 28 Oct 2005 05:04:53 GMT
Server: Apache/2.0.54 (Debian GNU/Linux) DAV/2
Location: http://192.168.0.201/others/snap.jpg
Content-Length: 285
Content-Type: text/html



201 Created

Created

Resource /others/snap.jpg has been created.



Apache/2.0.54 (Debian GNU/Linux) DAV/2 Server at 192.168.0.201 Port 80
====================== Outgoing Request ======================
PUT /others/._snap.jpg HTTP/1.1
MIME-Version: 1.0
Content-Type: text/html
User-Agent: Goliath/1.0.1 (Macintosh-Carbon; PPC)
Content-Length: 82
Host: 192.168.0.201

 2 RJPEGprvw
====================== Incoming Response ======================
HTTP/1.1 201 Created
Date: Fri, 28 Oct 2005 05:04:53 GMT
Server: Apache/2.0.54 (Debian GNU/Linux) DAV/2
Location: http://192.168.0.201/others/._snap.jpg
Content-Length: 287
Content-Type: text/html



201 Created

Created

Resource /others/._snap.jpg has been created.



Apache/2.0.54 (Debian GNU/Linux) DAV/2 Server at 192.168.0.201 Port 80
====================== Outgoing Request ======================
PROPFIND /others/snap.jpg HTTP/1.1
MIME-Version: 1.0
Content-Type: text/xml
User-Agent: Goliath/1.0.1 (Macintosh-Carbon; PPC)
Content-Length: 172
Host: 192.168.0.201
Depth: 0



====================== Incoming Response ======================
HTTP/1.1 207 Multi-Status
Date: Fri, 28 Oct 2005 05:04:53 GMT
Server: Apache/2.0.54 (Debian GNU/Linux) DAV/2
Content-Length: 517
Content-Type: text/xml; charset="utf-8"




/others/snap.jpg


Fri, 28 Oct 2005 05:04:53 GMT
42794

image/jpeg


HTTP/1.1 200 OK


なるほど。最初にHEADでファイルの存在チェックをして、なければPUTでファイルを送る。
指定の長さを受け取り終わったら、ファイルに保存して、ファイルを作ったというレスポンスを送る。
それで、PROFINDでデータの確認をするって流れか。
とすると、クライアント側でPUTを出していないのは、ファイルサイズをうまく解釈できないからってことかな。
それとも、そもそもサイズが送れる仕様を超えているので、勝手にやめちゃっているのかも。