How do I CURL www.google.com - it keeps redirecting me to .co.uk

前端 未结 7 2517
南笙
南笙 2021-02-19 16:06

I am using CURL to check for the existence of a URL (HEAD request) but when I test it with www.google.com, it redirects me to www.google.co.uk - probab

7条回答
  •  南笙
    南笙 (楼主)
    2021-02-19 16:57

    A bit of a hack, but how about using an IP address? http://216.239.59.147/ http://66.102.7.104/

提交回复
热议问题