现在的位置: 首页 > 综合 > 正文

Webdav 命令

2013年08月21日 ⁄ 综合 ⁄ 共 1135字 ⁄ 字号 评论关闭

PROPFIND /git/ HTTP/1.1
Host: 202.201.0.163
Content-Length: 200
Depth: 1
Content-Type: application/xml; charset="utf-8"
Authorization: Basic 

<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D='DAV:'>
  <D:prop><D:/></D:prop>
</D:propfind>

PROPFIND /git/ HTTP/1.1
Host: 202.201.0.163
Depth: 1
Content-Type: application/xml; charset="utf-8"
Content-Length: 118
Authorization: Basic

<?xml version="1.0" encoding="utf-8" ?>
<propfind xmlns="DAV:">
  <prop>
    <add-member/>
  </prop>
</propfind>
###

list:
PROPFIND  /git/ HTTP/1.1
Host: 202.201.0.163
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: 100
Authorization: Basic

<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">
  <D:allprop/>
</D:propfind>

put:
PUT /git/ilauncher.git/test2 HTTP/1.1
Host: 202.201.0.163
Content-Type: text/xml; charset="utf-8"
Content-Length: 100
Authorization: Basic 

<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">
  <D:allprop/>
</D:propfind>

PUT /git/ilauncher.git/test2 HTTP/1.1
Host: 202.201.0.163
Content-Type: text/xml; charset="utf-8"
Content-Length: 11
Content-Range: bytes 123-133/*
Authorization: Basic

abcdeabcdea

delete:
DELETE /git/ilauncher.git/test HTTP/1.1
Host: 202.201.0.163
Authorization: Basic

抱歉!评论已关闭.