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?

C#
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.
10,198 questions
{count} votes