sunhux
asked on
Testing site for http code 200 or curl equiv for Windows
I'm trying to do the following Unix equiv in Windows :
*Probe for active domain/website (usually HTTP CODE 200 OK, something even as
HTTP CODE 301 Redirects)
for url in $(cat list1.txt) ; do curl --max-time 6 -sL -w "%{http_code} %{url_effective}\\n" "$url" -o /dev/null; done > list2.txt
grep "^200" list2.txt > list3.txt
sed 's,200 ,,' list3.txt > list4.txt
Any free tools can do the above? Or any Windows command line tool equiv of curl?
*Probe for active domain/website (usually HTTP CODE 200 OK, something even as
HTTP CODE 301 Redirects)
for url in $(cat list1.txt) ; do curl --max-time 6 -sL -w "%{http_code} %{url_effective}\\n" "$url" -o /dev/null; done > list2.txt
grep "^200" list2.txt > list3.txt
sed 's,200 ,,' list3.txt > list4.txt
Any free tools can do the above? Or any Windows command line tool equiv of curl?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.