added code for httpsync
added code for httpsync