Android - Open browser with a url with request headers
<p>I have a specific requirement where I have to fire a url on the browser from my activity. I am able to do this with the following code : </p>

<pre><code>String finalUrl = "http://localhost:7001/display/result.jsp?param=12345";
Intent browserIntent = new Intent(android.content.Intent.ACTION_VIEW,
                        Uri.parse(finalUrl));
</code></pre>

<p>Now, I want to invoke result.jsp by passing 'param' as a request header in the request and not as the queryString itself.</p>

<p>Can somebody please advice ?</p>

<p>Thanks a lot in advance</p>

<p><strong>EDIT</strong>
Even a POST request with the 'param' in the request body should be fine.</p>

<p><strong>EDIT 2</strong>
The accepted answer is for the POST request, not for the headers.</p>
