Implemented EZP-20723: linkcheck cronjob: some urls marked invalid due to HEAD...

... request

Also get result data from curl as string, instead of capturing the output buffer.