param1というパラメータに”テスト”という文字列をセットして送信するC#のサンプル。
string params = “param1=” + HttpUtility.UrlEncode(“テスト”);
byte[] postData = new ASCIIEncoding().GetBytes(params);
string headers = “Content-Type: application/x-www-form-urlencoded\r\n”
webBrowser1.Navigate(“http://localhost/Test.aspx”, null, postData, headers);
Last 5 posts in .Net Framework
- CanExecuteのTrue,Falseを変更してもコマンド実行の可否がGUIに反映されない場合には - April 12th, 2011
- WebRequestの最大接続数を設定ファイルで変更するには - April 9th, 2011
- WebRequestの最大同時接続数を変更するには - April 5th, 2011