有一个很少(可能附加说明的)典型要求答复周期的例子,既有负责人,也有机构。 我的理解是,这包括初步的《任择议定书》和随后的《PROPFIND》交流——此后,GET和PUT应当直截了当,因此我不需要一个通用的例子。
我在考虑通过WebDAV提供现有的可再生能源资源(收集和单个项目)。 我只需要基本功能——列出目录、阅读和书写档案——而亚洲艾滋病协会意味着增加PROPFC的支持就足够了。
有一个很少(可能附加说明的)典型要求答复周期的例子,既有负责人,也有机构。 我的理解是,这包括初步的《任择议定书》和随后的《PROPFIND》交流——此后,GET和PUT应当直截了当,因此我不需要一个通用的例子。
我在考虑通过WebDAV提供现有的可再生能源资源(收集和单个项目)。 我只需要基本功能——列出目录、阅读和书写档案——而亚洲艾滋病协会意味着增加PROPFC的支持就足够了。
The specification includes examples:
请求:
OPTIONS /somecollection/ HTTP/1.1
Host: example.org
Response:
HTTP/1.1 200 OK
Allow: OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, COPY, MOVE
Allow: MKCOL, PROPFIND, PROPPATCH, LOCK, UNLOCK, ORDERPATCH
DAV: 1, 2, ordered-collections
请求:
PROPFIND /somecollection HTTP/1.1
Depth: 0
Content-Type: text/xml; charset="utf-8"
Content-Length: xxx
<?xml version="1.0" encoding="UTF-8" ?>
<propfind xmlns="DAV:">
<prop>
<supported-live-property-set/>
<supported-method-set/>
</prop>
</propfind>
答复:
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxx
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>http://example.org/somecollection</href>
<propstat>
<prop>
<supported-live-property-set>
<supported-live-property>
<prop><ordering-type/></prop>
</supported-live-property>
<!-- ... other live properties omitted for brevity ... -->
</supported-live-property-set>
<supported-method-set>
<supported-method name="COPY" />
<supported-method name="DELETE" />
<supported-method name="GET" />
<supported-method name="HEAD" />
<supported-method name="LOCK" />
<supported-method name="MKCOL" />
<supported-method name="MOVE" />
<supported-method name="OPTIONS" />
<supported-method name="ORDERPATCH" />
<supported-method name="POST" />
<supported-method name="PROPFIND" />
<supported-method name="PROPPATCH" />
<supported-method name="PUT" />
<supported-method name="TRACE" />
<supported-method name="UNLOCK" />
</supported-method-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
In trying to determing a if a specific connection is supported, I m cofused about the difference between CoverageInfo.getCoverageStatus() and CoverageInfo.isCoverageSufficient(). For example: // ...
I am returning a stream in some response setting the appropriate content-type header. The behavior I m looking for is this: If the browser is able to render content of the given content type then it ...
>>> a=urllib.urlopen( http://www.domain.com/bigvideo.avi ) >>> a.getcode() 404 >>> a=urllib.urlopen( http://www.google.com/ ) >>> a.getcode() 200 My question is......
friendfeed.com uses 302. bit.ly uses 301. I had decided to use 303. Do they behave differently in terms of support by browsers ?
I am wondering if there is a straightforward way to use .NET s built in HTTP support to parse arbitrary bytes into nice HTTP requests and responses. For example, I would like to be able to pass in a ...
Background: I am implementing Paypal IPN handler. This great article on Paypal states that I am required to send a 200 OK back to Paypal after I read the response. The processing of IPN request is ...
我试图把桌面应用程序连接起来,我是同D.icio.us api @ Delicious Alan书写的,简单地向他们提供我的用户名和密码,并请他把书记上写给我......。
I m using curl to make php send an http request to some website somewhere and have set CURLOPT_FOLLOWLOCATION to 1 so that it follows redirects. How then, can I find out where it was eventually ...