Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

httpclient getstringasync

private static async string HttpGet(string uri)
        {
            var http = new HttpClient();
            http.BaseAddress = new Uri(uri);
            var res = await http.GetStringAsync("");
            return res;
        }
Comment

httpclient getstringasync

private static string HttpGet(string uri)
{
  var http = new HttpClient();
  http.BaseAddress = new Uri(uri);
  var res = http.GetStringAsync("").Result;
  return res;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: query parameters sending to controller action asp.net core 
Csharp :: dapper get list 
Csharp :: vb.net windows version check 
Csharp :: 2d array 
Csharp :: c# if statements 
Csharp :: generate a dropdown list from array data using razor .net mvc 
Csharp :: c# resize multidimensional array 
Csharp :: if statement in razor using "?" and ":" 
Csharp :: c# reflection get property value array 
Csharp :: .net core get runtime version 
Csharp :: how to instantiate and delete unity 
Csharp :: how create two database conction in laravel 
Csharp :: instantiate date time variable C# 
Csharp :: how to call last string from text file C# 
Csharp :: c# check if character is lowercase 
Csharp :: How to execute script in C# 
Csharp :: delete items in c# 
Csharp :: c# C# read text from a certain line number from string 
Csharp :: matrix transpose c# 
Csharp :: unity animation length 
Csharp :: c# list initialize 
Csharp :: add rotation 
Csharp :: cefsharp print 
Csharp :: jq map over array 
Csharp :: c# odp.net close session 
Csharp :: public controller script unity 3d 
Csharp :: c# accept any enum 
Csharp :: Boolean Literals 
Csharp :: async method out parameter c# 
Csharp :: c# insert from with bind array 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =