Java application to fetch web content after POST