Option 1:
Write code to determine the user's default browser. Then write code to automate their default browser. This will need to be different for each browser, since there isn't a standard way to automate them. There may be some browsers which don't support this kind of automation. And you will likely
still end up with users whose default browser is some obscure product you've never heard of, so your code won't work for them.
Option 2:
Create a page on your own website which accepts the value to post as a querystring parameter, and returns a pre-populated
<form>
with some Javascript to automatically submit the form when the page loads. Then construct the URL to your site, and use
Process.Start
to launch the user's default browser and navigate to that URL.
Process.Start("https://yoursite.local/redirect-to-target/?par1=val1&par2=" & val2)
Option 3:
Create a temporary HTML file on disk containing a pre-populated
<form>
and some Javascript to submit the form when the page loads. Use
Process.Start
to open that HTML file in the user's default browser
(assuming they haven't configured HTML files to open in a different application or browser).
Dim html As String = $"
<form id=""f"" method=""POST"" action=""https://mysite/"">
<input type=""hidden"" name=""par1"" value=""val1"" />
<input type=""hidden"" name=""par2"" value=""{val2}"" />
</form>
<script>
document.getElementById('f').submit();
</script>
"
Dim fileName As String = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N") + ".html")
File.WriteAllText(fileName, html)
Process.Start(fileName)
You'll want to clean up these temporary HTML files once you've finished with them.