Readme had a broken example, added fclose to http logic