Answer the question
In order to leave comments, you need to log in
C# how to create an http request and get variables from it?
C# how to create an http request and get variables from it? (I do it in the browser, see screenshot). And you need the same in the program. I also need to display the request values in variables such as key, server, ts
Answer the question
In order to leave comments, you need to log in
Uri address = new Uri("https://api.vk.com/blablabla");
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | (SecurityProtocolType)(0xc0 | 0x300 | 0xc00);
WebClient client = new WebClient();
client.Encoding = System.Text.Encoding.UTF8;
String request = client.DownloadString(address);
client.Dispose();
YourObject myobject = JsonParser.deserialize(request);//так как C# не имеет встроенных методов разборки JSON то тут вызрв библиотечной функции.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question