Included curl function to connect to the web server