title: C# Open web page in default browser with post data
body: <p>I am sure this must have been answered before but I cannot find a solution, so I figure I am likely misunderstanding other people's solutions or trying to do something daft, but here we go.</p>
  <p>I am writing an add-in for Outlook 2010 in C# where a user can click a button in the ribbon and submit the email contents to a web site. When they click the button the website should open in the default browser, thus allowing them to review what has just been submitted and interact with it on the website. I am able to do this using query strings in the URL using:</p>
  <pre><code>System.Diagnostics.Process.Start(&quot;http://www.test.com?something=value&quot;);
  </code></pre>
  <p>but the limit on the amount of data that can be submitted and the messy URLs are preventing me from following through with this approach. I would like to use an HTTP POST for this as it is obviously more suitable. However, the methods I have found for doing this do not seem to open the page up in the browser after submitting the post data:</p>
  <p><a href="http://msdn.microsoft.com/en-us/library/debx8sh9.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/debx8sh9.aspx</a></p>
  <p>to summarise; the user needs to be able to click the button in the Outlook ribbon, have the web browser open and display the contents of the email which have been submitted via POST.</p>
  <p><strong>EDIT:</strong></p>
  <p>Right, I found a way to do it, its pretty fugly but it works! Simply create a temporary .html file (that is then launched as above) containing a form with hidden fields for all the data, and have it submitted on page load with JavaScript.</p>
  <p>I don't really like this solution as it relies on JavaScript (I have a <code>&lt;noscript&gt;</code> submit button just in case) and seems like a bit of a bodge, so I am still really hoping someone on here will come up with something better.</p>