私のサーバーでは、デバイスIDを含むヘッダーをサーバーに投稿する必要があります。通常、次のようなことができます。
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(_connectionURL);
request.ContentType = "application/x-www-form-urlencoded";
request.Headers.Add // THIS METHOD DOESN'T EXIST in windows phone 7
request.Method = "POST";
このメソッドがあり、使用可能なヘッダーを設定できますが、必要なヘッダーがそこに含まれていません。WebHeaderCollectionに別のヘッダーを追加するにはどうすればよいですか。
request.Headers.AllKeys.SetValue //this function to set the available headers.