From e4f7af3611a7a9ec92c933152813fa0bb6869d15 Mon Sep 17 00:00:00 2001 From: Nastro_ Date: Fri, 21 Mar 2025 10:48:33 +0100 Subject: [PATCH] Permitting to create http requests --- LoadTest/Program.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/LoadTest/Program.cs b/LoadTest/Program.cs index e5a1e4a..6011cf1 100644 --- a/LoadTest/Program.cs +++ b/LoadTest/Program.cs @@ -34,10 +34,9 @@ internal class Program do { - Console.WriteLine("Insert URL: "); + Console.WriteLine("Insert Full URL: "); url = Console.ReadLine(); - url = "https://" + url; - } while (string.IsNullOrEmpty(url) && url != "https://"); + } while (string.IsNullOrEmpty(url) || !Uri.TryCreate(url, UriKind.Absolute, out _)); if (methodHttp == "POST") {