POST parameter named & # xff0c; Key code into the next:
System.Net.WebClient WebClientObj2 & # 61; New System.Net.WebClient ();
System. Collections. Specialized. NameValueCollection PostVars2 & # 61; The new System. Collections. Specialized. NameValueCollection ();
PostVars2. Add (& # 34; Parameter 1 & # 34; , & # 34; 111111111 the & # 34;);
PostVars2. Add (& # 34; Parameter 2 & # 34; , & # 34; [\ & # 34; aaaaaa \ & # 34;, \ & # 34; BBBBBB \ & # 34;] & # 34;);
Byte [] byRemoteInfo2 & # 61; WebClientObj2. UploadValues (& # 34; http://wwww.xxx.com/api/abc" , & # 34; POST & # 34; , PostVars2);
the & # xff0c; Request message sample & # xff1a; {& # 34; Parameter 1 & # 34; : & # 34; 111111111 the & # 34; , & # 34; Parameter 2 & # 34; : [& # 34; aaaaaa & # 34;, & # 34; BBBBBB & # 34;] }
after submit data error & # xff1a; remote server returns an error: (500) internal server error,
excuse me everybody & # xff0c; PostVars2. Add (& # 34; Parameter 2 & # 34; , & # 34; [\ & # 34; aaaaaa \ & # 34;, \ & # 34; BBBBBB \ & # 34;] & # 34;); Here to write to me & # xff1f;