troubleshooting Question

Testing site for http code 200 or curl equiv for Windows

Avatar of sunhux
sunhux asked on
OS SecurityScripting LanguagesUnix OSLinux DistributionsWeb Servers
2 Comments2 Solutions287 ViewsLast Modified:
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?
ASKER CERTIFIED SOLUTION
David Johnson, CD
The More I know, the more I don't know
Join our community to see this answer!
Unlock 2 Answers and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros