<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Oh, actually, I was wrong about this being tough to debug with just the Authorization header :-)</div><div><br></div><div>Now that I look closer I see that the content hash is missing from the Hawk parameters.</div><div><br></div><div>For HTTP requests that have a body, you will need to calculate a content hash and include it as one of the Hawk parameters. See the Hawk spec for an example.</div><div><br></div><div> S.</div><br><div><div>On Sep 24, 2014, at 5:13 AM, Partha Debnath <<a href="mailto:partha.dn@samsung.com">partha.dn@samsung.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.4; margin: 10px; font-family: Arial, arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><p style="margin-top: 5px; font-family: Arial, arial; margin-bottom: 5px; font-size: 9pt;">Hello All,</p><p style="margin-top: 5px; font-family: Arial, arial; margin-bottom: 5px; font-size: 9pt;">I am trying to implement FireFox Sync Adapter in C++.I have implemented down sync of data from FireFox</p><p style="margin-top: 5px; font-family: Arial, arial; margin-bottom: 5px; font-size: 9pt;">server and it is working fine.But, while I was trying to upload data into FIreFox server, I got an error saying</p><p style="margin-top: 5px; font-family: Arial, arial; margin-bottom: 5px; font-size: 9pt;">"<strong><span style="background-color: rgb(255, 0, 0);">401 Unauthorized</span></strong>".I have developed all the above mentioned fuctionality by understanding Mozilla Sync</p><p style="margin-top: 5px; font-family: Arial, arial; margin-bottom: 5px; font-size: 9pt;">Adapter for android.</p><p style="margin-top: 5px; font-family: Arial, arial; margin-bottom: 5px; font-size: 9pt;">Following are the details of the upsync request :</p><p style="margin-top: 5px; font-family: Arial, arial; margin-bottom: 5px; font-size: 9pt;"><u><strong>1. Header :</strong></u><span class="Apple-converted-space"> </span>Authorization:Hawk id="eyJhbGciOiJSUzI1NiJ9.eyJmeGEtZ2VuZXJhdGlvbiI6MTM5NTY1ODc4NDk0NCwiZnhhLWxhc3RBdXRoQXQiOjE0</p></div></blockquote></div></body></html>