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#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Your answer

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