I´m trying to open a pdf that I have created using iText library in my browser, but it fails. This is the code I´m using to send to browser
File file = n
Android Default Browser requires GET Request. It does not understand POST Request and hence cannot download the attachment. You can send a GET request as by sending GET request, it resolved my problem. Android browser generates a GET request on its own and sends it back to server. The response received after second request will be considered final by the browser even if GET request is sent on first time by the servlet.