Okay so I know how to send a HTTP POST request to a website in code, and I know how to open a url in a browser (HTTP GET). But how do open a HTTP POST in a browser.
EDIT:More Details: The website allows you to open a page to add a new entry, you can seed that page with information by POSTing that information. I have that information in my Java Desktop application, so from my Java application I want to open the add new entry page in the users preferred browser seeded with the known information.
EDIT: SO I tried Lees answer, and managed to construct a webpage with a submit button, when you click on it it goes to the final page with fields filled in, but I cant get javascript to work so that it goes there automtically without needing to press the submit button. Here is the webpage I generate
<html><head>
<script type = "text/javascript">
function onLoad()
{
document.getElementById('form').submit();
}
</script>
</head>
<body>
<form name="form" action="http://test.musicbrainz.org/release/add" method="post">
<input name="name" type="hidden" value="Porcupine"/>
<input type="submit" value="send">
</form>
</body>