public Dictionary <string, string> GetCodeHeader(string usertoken) { return(new Dictionary <string, string>() { { "sobeyhive-http-secret", RSAHelper.RSAstr() }, { "current-user-code", usertoken } }); }
public static void SetHeaderValue(this HttpContentHeaders Headers) { if (Headers != null) { Headers.Add("sobeyhive-http-system", "INGESTSERVER"); Headers.Add("sobeyhive-http-site", "S1"); Headers.Add("sobeyhive-http-tool", "INGESTSERVER"); Headers.Add("sobeyhive-http-secret", RSAHelper.RSAstr()); Headers.Add("current-user-code", "admin"); } }