Linked Questions

7 votes
3 answers
12k views

I recently discovered that the following does not work with certain sites, such as IMDB.com. class Program { static void Main(string[] args) { try { ...
Serapth's user avatar
  • 7,182
4 votes
1 answer
16k views

I have seen a few questions similar to this but have not found one that will work for my situation. I have a list of URL's stored in a text file that I need to run through to see if they return a 404 ...
Reece's user avatar
  • 764
2 votes
2 answers
5k views

I have a huge list of blog URLs that I need to check the validity of. I've knocked together a script from this answer and from here. Here is my script: $siteURL = 'http://example.com/' $File = '.\...
Burgi's user avatar
  • 439
2 votes
2 answers
7k views

I am trying to figure out how to get results from a Invoke-WebRequest to download a file from the internet. I wrote a function but it doesn't seem to get the results. StatusCode and StatusDescription ...
user avatar
2 votes
2 answers
1k views

I am running this script Invoke-Expression $expression -ErrorAction SilentlyContinue The variable $expression may not have a value sometimes. When It's empty, I get the error Cannot bind argument to ...
FranLegon's user avatar
-1 votes
1 answer
678 views

I have a set of URLs and I want to check if they are an actual site. I have tried this code : $Uri = $Site -as [uri] if($Uri){ ...
davetherave's user avatar
  • 1,167
0 votes
1 answer
1k views

Hoping someone can help with this. I built a script based on this link [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $urlStr = Read-Host "Please enter URL to check"...
Rajiv Ahmed's user avatar
0 votes
2 answers
499 views

I have modified a large file to give me just the urls that I want to run in powershell to check the status code and return them. I am new to powershell so I am having a few issues with my code. The ...
Amanda's user avatar
  • 31
1 vote
1 answer
769 views

I curious if you can answer this or point me in the right direction. I've written a script that tests/monitors urls. I'm not posting the code ( unless you want me to ) because there is no error in ...
Daniel Peel's user avatar
2 votes
0 answers
110 views

I have local application and I would like to check not only a specific URL, but also all dependent assets requests (css, js, etc). Is there an easy way to do it? I had a look at this question, but it ...
K. B.'s user avatar
  • 3,730