using curl instead of wget to read from the web