Homework assignment? ;-)
Use Invoke-WebRequest.
For example:
$Uris = 'www.site.one','www.site.two'
$Uris |
ForEach-Object{
$Status = "" # entirely optional if you don't care whay things failed
Try{
$Response = Invoke-WebRequest -Uri $_ -ErrorAction Stop
$Status = $Response.StatusCode
# Do something with the body part of the response
}
Catch{
$Status = $Response.StatusCode
# react to error here
}
}
How you deal with the "output" of the operation is up to you. Are you looking for specific data found in a HTML tag? Or just dumping the entire body of the response into a file?