Link to home
Start Free TrialLog in
Avatar of sunhux
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?
SOLUTION
Avatar of MidnightOne
MidnightOne
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial