So I want to post to a form within the same domain entirely from code. I think I have everything I need except how to include the form data. The values I need to include are from hidden fields and input fields, let's call them:
<input type="text" name="login" id="login"/>
<input type="password" name="p" id="p"/>
<input type = hidden name="a" id="a"/>
What I have so far is
WebRequest req = WebRequest.Create("http://www.blah.com/form.aspx")
req.ContentType = "application/x-www-form-urlencoded"
req.Method = "POST"
How do I include the values for those three input fields in the request?