updated curl so that it gives error on request of empty page