Improved version, the url to request is readed from the headers.txt file, also added an optional parameter