Esempio n. 1
0
 public Dictionary <string, string> GetCodeHeader(string usertoken)
 {
     return(new Dictionary <string, string>()
     {
         { "sobeyhive-http-secret", RSAHelper.RSAstr() },
         { "current-user-code", usertoken }
     });
 }
Esempio n. 2
0
 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");
     }
 }