The obvious problem is that your PHP code is looking for a form variable called
mode
, which should be set to either
1
,
2
, or
3
; but your C# code is not sending that variable. Instead, you're sending three variables called
mode1
,
mode2
and
mode3
, all set to empty strings.
For
mode=3
, your PHP code is also reading the value of the
cmdid
variable, but again, your C# code is sending an empty string.
Update your C# code to submit the correct variables and values. For example:
values["mode"] = "3";
values["cmdid"] = "some-value-here";
NB: Replace
"some-value-here"
with the expected value of the
cmdid
variable.