testing if a url is reachable or not

hannes 6 Reputation points
2021-04-10T15:51:15.763+00:00

Hi, i'm trying to write a C# function, which should check if url is reachable or not.

This is what i got so far:
86483-image.png

The Problem is, that the function always runs into to catch part. It doesn't care if the url is reachable or not.

Can anyone help me with this problem?

Developer technologies C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.