I am trying to create a multi/form-data Postback using System.Net.HttpWebRequests.
Normally the browser creates the multi/form-data Postback. However, since I am using HttpWebRequests, I will have to parse the Html and then create a POST body based on the Html.
The controls on the page are updated frequently so I can't rely on hard coding the data for each control that should be posted. Instead I'll have to make a list of all the controls which should be posted and then do something like this.
But to do that I need to know how browsers determine which controls to include in the Postback body. So how do they?