Export (0) Print
Expand All

4 Protocol Examples

Office

The following is an example of this protocol usage. In this example, the identifier of the presentation is the following:

http://www.contoso.com/documents/loremipsum.pptx

The URL generated by the protocol client to get information about slide 256 is as follows:

http:// www.contoso.com/p/presentation.ashx?Pid=http://www.contoso.com/documents/loremipsum.pptx&ct=slide&wdSlideId=256

HTTP request

GET http:// www.contoso.com/p/presentation.ashx?Pid=http://www.contoso.com/documents/loremipsum.pptx&ct=slide&wdSlideId=256 HTTP/1.1
Accept: */*
Host: contoso.com
Connection: Keep-Alive

HTTP response

HTTP/1.1 200 OK
Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Type: application/json; charset=UTF-8
Expires: -1
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
P3P: CP="CAO DSP COR ADMa DEV CONi TELi CUR PSA PSD TAI IVDi OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR"
X-Content-Type-Options: nosniff
X-Download-Options: noopen
Content-Disposition: attachment
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Fri, 07 Sep 2012 17:51:48 GMT
Content-Length: 1437

[{"FHidden":false,"Id":256,"Notes":[{"align":0,"buChar":"","level":1,"rtl":false,"t":"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}],"Thumbnail":".\/imagehandler.ashx? Pid=http://www.contoso.com/documents/loremipsum.pptx&Rid=img256.png","Title":"Lorem ipsum dolor sit amet"}]
Show:
© 2014 Microsoft