Tag: .NET

  • Access the Environment Variables of Windows with PowerShell

    Summary On UNIX-like OS, it provide commands that allows you to access environment variables. Examples are export and set…etc. How to get/set the Environment Variables of Windows on command line? Prerequisites PowerShell v5.1 .NET Core v3.1 Windows 10 v21H1 Method PowerShell is available to access .NET. So, using Environment.GetEnvironment andEnvironment.SetEnvironment to get and set the…

  • Send HTTP Request in C#

    It’s been a while since I send HTTP Request in C#.So, I wrote this post as my note. Prerequisites .NET Core 3.1 C# v8 Visual Studio 2019 Windows 10 v21H1 Not good case If it’s a trial code that only you use, this is fine. Not suitable for commercial services. If you are possible, HTTPClient…