Send commands as JSON not forms.