HttpWebRequest response produces HTTP 422. Why?
- by Simon
Hi there.
I'm trying to programmatically send a POST-request to a web-server in order to login an then perform other requests that require a login.
This is my code:
Encoding.UTF8.GetBytes(
String.Format(
"login={0}&password={1}&authenticity_token={2}",
username, password, token));
//Create…