Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

simple http request c#

using System.Net;

var url = "http://webcode.me";

var request = WebRequest.Create(url);
request.Method = "GET";

using var webResponse = request.GetResponse();
using var webStream = webResponse.GetResponseStream();

using var reader = new StreamReader(webStream);
var data = reader.ReadToEnd();

Console.WriteLine(data);
Comment

PREVIOUS NEXT
Code Example
Csharp :: elevated priviledge in c# 
Csharp :: unity get selected gameobject 
Csharp :: instantiate scale object 
Csharp :: c# dynamic object get value 
Csharp :: c# initialize array 
Csharp :: how to check if control key is pressed c# 
Csharp :: how create another new app file in laravel 
Csharp :: unity gameobject to mouse 
Csharp :: c# rename file add 
Csharp :: how to remove raycast on a button unity 
Csharp :: destroy gameobject unity 
Csharp :: c# xpath read attribute value 
Csharp :: c# keep console open 
Csharp :: unity custom editor save changes 
Csharp :: Editor log location unity 
Csharp :: csharp check if env is development 
Csharp :: c# encrypt decrypt string 
Csharp :: validate data exist in database lara vel 
Csharp :: C# .NET Core linq Distinct 
Csharp :: how do i make multiplayer in unity 
Csharp :: unity smooth rotation 2d 
Csharp :: how to reference a child object unity 
Csharp :: datagridview column color c# 
Csharp :: entity framework update child records 
Csharp :: Unity disable turn off component 
Csharp :: maximize window c# console 
Csharp :: unity new input system keydown 
Csharp :: How to create connection string dynamically in C# 
Csharp :: dotnet new project 
Csharp :: Cursor Lock and Visible in Unity 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =