1、 $SSURYHG-XOOLQNhrefDWWULEXWHLQFOXGHGZLWKHDFK)DFLOLW7KLVDOORZVWKH6LWH/LVWGRFXPHQWWRUHPDLQVPDOOHYHQLILWFRQWDLQVODUJHQXPEHURIIDFLOLWLHV)RUHDPSOHDFOLHQWLQWHUHVWHGLQUHWULHYLQJWKH)/0IRUWKHIDFLOLWZLWKLGHQWLILHU“tag:example.org,2015:facilities/562999“ZRXOGXVHWKH+773*(7PHWKRGRQWKHIROORZLQJ)/085, VHH6HFWLRQ
2、https:/example.org/FLM/562999 7KHUHVSRQVHIURPVXFKDUHTXHVWZRXOGEHWKH)/0GRFXPHQWLWVHOIDVVXPLQJLWHLVWV%GHVLJQ)/0FOLHQWVGRQRWUHWULHYH)/0GRFXPHQWVEDVHGRQPRGLILFDWLRQRUFUHDWLRQGDWHEXWLQVWHDGUHWULHYHWKHHQWLUH6LWH/LVWGRFXPHQWZKLFKFRQWDLQVWKHODVWPRGLILFDWLRQGDWHIRULQGLYLGXDO)/0GRFXPHQWV1RWHWKDW)/0FOLHQWVFDQD
3、YRLGUHSHDWHGOUHWULHYLQJWKHHQWLUH6LWH/LVWGRFXPHQWEFDFKLQJWKHLast-Modified+773UHVSRQVHKHDGHUDQGXVLQJWKDWGDWHLQDQIf-Modified-Since+773UHTXHVWKHDGHU$EHQHILWRIEDVLQJWKH)/0SURWRFRORQ5(67SULQFLSOHVDQGXVLQJ;0/GRFXPHQWVLVWKDWLWIXQFWLRQVQDWXUDOOZLWKZHEEURZVHUV)RUHDPSOHLID)/085,LVWSHGLQWRDEURZVHUWKDW)/0ZLOOEHG
4、LVSODHG6LQFHWKH;0/GRFXPHQWLVVHUYHGZLWKD“Content-Type: application/xml“+773KHDGHUPRVWPRGHUQEURZVHUVZLOODOORZWKHXVHUWRHSORUHWKH;0/WUHHLQWHUDFWLYHO$Q)/0VHUYHUFDQPDNHWKHGDWDHYHQPRUHKXPDQIULHQGOEVXSSOLQJ;6/VWOHVKHHWVHJIRU6LWH/LV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GLIIHUHQWXVHUV)RUHDPSOHRQHXVHUFRXOGEHDOORZHGUHDGZULWHDFFHVVZKLOHDQRWKHUFRXOGRQOPDNHUHDGUHTXHVWV,IGLIIHUHQWDFFHVVULJKWVDUHJUDQWHGWRGLIIHUHQWXVHUVDQ)/0VHUYHUVKDOOXVHRQHRIWKHIROORZLQJPHWKRGVWRDXWKHQWLFD
9、WHDXVHU %DVLF$XWKHQWLFDWLRQ6FKHPHDVVSHFLILHGLQ5)0/GRFXPHQWZKRVHURRWHOHPHQWLVWKHErrorHOHPHQWVSHFLILHGLQ7DEOH7DEOH(UURUHOHPHQWDQG(UURU7SHWSHGHILQLWLRQV127(5HVSRQVHVWKDWXVHWKHErrorHOHPHQWVSHFLIWKHYDOXHRIWKHTokenHOHPHQWEXWOHDYHWKHYDOXHRIWKHMessageHOHPHQWWRWKHGLVFUHWLRQRIWKHLPSOHPHQWDWLRQZKLFKIRULQVWDQFH
10、FDQWDLORULWWRVSHFLILFORFDOHV VHUYHUUHVSRQVH7KHTokenHOHPHQWYDOXHVKDOOEH“ContentTypeNotSupported“(;$03/(7KLVVHFWLRQDSSOLHVLIWKHKHDGHU“Accept: application/json“LVUHFHLYHGZKHQPDNLQJD*HW)/0UHTXHVW 6HFWLRQ ZKLFKUHWXUQVFRQWHQWZLWKFRQWHQWWSHHTXDOWR“application/xml; charset=UTF-8“.6037(673DJHRISDJHV 8QVXSSRU
11、WHG0HGLD7SH7KLVUHVSRQVHVKDOOEHUHWXUQHGLIWKHContent-TypeKHDGHURIDUHTXHVWGRHVQRWPDWFKWKHFRQWHQWWSHRIWKHERGUHWXUQHGEWKH)/0VHUYHU7KHTokenHOHPHQWYDOXHVKDOOEH“ContentTypeNotSupported“(;$03/(7KLVVHFWLRQDSSOLHVLIWKHKHDGHU“Content-Type: application/json“LVUHFHLYHGZKHQPDNLQJD$GGRU8SGDWH)/0UHTXHVW 6HFWLRQ ZKLF
12、KHSHFWVFRQWHQWZLWKFRQWHQWWSHHTXDOWR“application/xml; charset=UTF-8“. 0HWKRG1RW$OORZHG7KLVUHVSRQVHVKDOOEHUHWXUQHGLIDUHTXHVW85,LVQRWUHFRJQLHG7KHTokenHOHPHQWVKDOOEH“MethodNotAllowed“ )RUELGGHQ7KLVUHVSRQVHVKDOOEHUHWXUQHGLIDXVHULVQRWDXWKRULHGWRPDNHDUHTXHVWDVGHILQHGLQ6HFWLRQ7KHTokenVKDOOEHUserNotAuthorize
13、d 6LWH/LVW5HTXHVWV *HW6LWH/LVW HVFULSWLRQ7KLVUHTXHVWUHWULHYHVDOOIDFLOLWLHVDVVRFLDWHGZLWKD6LWH/LVW85,(;$03/(7KHIROORZLQJ+773UHTXHVWWRDXWKRULW“example.org“UHWULHYHVDOOIDFLOLWLHVDVVRFLDWHGZLWKWKH6LWH/LVW85,“https:/example.org/blah/foo“GET /blah/foo HTTP/1.1 (7DJ7RPLQLPLHWKHLPSDFWRIUHSHDWHGSROOLQJE)/0FO
14、LHQWVDQ)/06HUYHUVKRXOGLPSOHPHQWWKHHQWLWWDJIHDWXUHVSHFLILHGLQ5)0/GRFXPHQWZKRVHURRWLVDSiteListHOHPHQWDVVSHFLILHGLQ7DEOH7DEOH6LWH/LVWHOHPHQWDQG6LWH/LVW7SHWSHGHILQLWLRQV7KHOriginatorHOHPHQWVKDOOEHWKHDEVROXWH85,IURPZKLFKWKHSiteListHOHPHQWZDVUHWULHYHG(;$03/(https:/noname/flm 7KHSystemNameHOHPHQWVKDOOEHDKX
15、PDQUHDGDEOHGHVFULSWLRQRIWKHVHUYHUIURPZKLFKWKHSiteListHOHPHQWZDVUHWULHYHG(;$03/(Issuer Foo7KHDateTimeCreatedHOHPHQWVKDOOEHWKHGDWHDQGWLPHRIFUHDWLRQRIWKHSiteListHOHPHQW,WLVLQWHQGHGVWULFWOIRUGLVSODWRDXVHU7KHFacilityListTypeVKDOOEHDVVSHFLILHGLQ7DEOH7DEOH)DFLOLW/LVW7SHWSHGHILQLWLRQ(DFKFacilityHOHPHQWVKDOO
16、FRUUHVSRQGWRDXQLTXHVLWH7KHFacilityTypeVKDOOEHVSHFLILHGDVVSHFLILHGLQ7DEOH7DEOH)DFLOLW7SHWSHGHILQLWLRQ6037(673DJHRISDJHV7KHidDWWULEXWHVKDOOEHWKHHTXDOWRWKHFacilityIDDVGHILQHGLQ67RIWKH)/07KHxlink:hrefDWWULEXWHVKDOOEHD85,SHUWKH:/LQNVSHFLILFDWLRQ7KHxlink:typeDWWULEXWHVKDOOEHHTXDOWR“simple“SHUWKH:OLQNVSHFL
17、ILFDWLRQ7KHmodifiedDWWULEXWHVKDOOLQGLFDWHZKHQWKH)/0ZDVODVWPRGLILHG7KHDEVROXWH85,UHVXOWLQJIURPUHVROYLQJ DVVSHFLILHGLQ6HFWLRQRI,(7)5)$03/()RUHDPSOHWRUHWULHYHWKH)/0FRUUHVSRQGLQJWRWKHIROORZLQJFacilityHOHPHQWWKHIROORZLQJ+773UHTXHVWZRXOGSHUIRUPHGGET /FLM/xyz%3A882345 HTTP/1.1 0RYHG3HUPDQHQWO7KLVUHVSRQVHVK
18、DOOEHUHWXUQHGLIWKH6LWH/LVW85,LVQRORQJHUYDOLGDQGKDVEHHQUHSODFHGEDQRWKHU6LWH/LVW85,7KHUHVSRQVHVKDOOFRQWDLQDLocationKHDGHUFRQWDLQLQJWKHUHSODFHPHQW6LWH/LVW85, )/05HTXHVWV *HW)/0 HVFULSWLRQ7KLVUHTXHVWUHWULHYHVWKH)/0IRUDVLQJOHIDFLOLW 5HTXHVW 0HWKRGDQG7DUJHWGET targetFLM 6037(67 3DJHRISDJHV 85,3DUDPHWHUVta
19、rgetFLM origin-formHWUDFWHGIURPWKH)/085,DVVSHFLILHGLQ,(7)5)$03/(7KHLast-ModifiedKHDGHUDVVRFLDWHGZLWKLVLast-Modified: Fri, 23 Apr 2010 01:00:30 GMT 127(7KHdatetimeIRUPDWRIWKHLast-Modified +773KHDGHUGLIIHUVIURPWKHdatetimeIRUPDWIRXQGLQWKHSiteListDQGRWKHU0/GRFXPHQWV7KHIRUPHULVDOZDVHSUHVVHGLQ870/SURFHVVL
20、QJLQVWUXFWLRQV(;$03/($Q;6/7VWOHVKHHWFDQEHLQFOXGHGLQDQ)/0WRIDFLOLWDWHYLHZLQJHJ 0RYHG3HUPDQHQWO7KLVUHVSRQVHVKDOOEHUHWXUQHGLIWKH)/085,LVQRORQJHUYDOLGDQGKDVEHHQUHSODFHGEDQRWKHU)/085,7KHUHVSRQVHVKDOOFRQWDLQDLocationKHDGHUFRQWDLQLQJWKHUHSODFHPHQW)/085, *RQH7KLVUHVSRQVHVKDOOEHUHWXUQHGLIWKH)/0LVQRWDYDLODEOHDQGLWVZKHUHDERXWVDUHXQNQRZQ7KH7RNHQHOHPHQWYDOXHVKDOOEH“NoSuchFLM“ $GGRU8SGDWH)DFLOLW HVFULSWLRQ7KLVUHTXHVWDOORZVWKH)/0DVVRFLDWHGZLWKDIDFLOLWWREHFUHDWHGRUPRGLILHG6037(673DJHRISDJHV 5HTXHVW 0HWKRGDQG7DUJHWPOST targetFLM 85,3DUD