Webdav 命令

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

你可能感兴趣的:(basic,delete,authorization,encoding)