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 :
String finalUrl = "http://localhost:7001/display/result.jsp?param=12345";
Intent browserIntent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse(finalUrl));
Now, I want to invoke result.jsp by passing 'param' as a request header in the request and not as the queryString itself.
Can somebody please advice ?
Thanks a lot in advance
EDIT Even a POST request with the 'param' in the request body should be fine.
EDIT 2 The accepted answer is for the POST request, not for the headers.