application downloads html or pdf files based on the url provided