Fixed incorrect URL and added ability to print response