Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 2149

I need help with C#

by ILoveCrackingIt - 08 April, 2020 - 06:37 AM
This post is by a banned member (ILoveCrackingIt) - Unhide
134
Posts
4
Threads
4 Years of service
#1
Okay i finished 3 long course on udemy about C# i understand the basic's but i want to make account checker's. I opened people source code checker's and i understand some of it but like this code here confusing me 
using (HttpRequest httpRequest = new HttpRequest())
                        {
                            httpRequest.Proxy = proxies[new Random().Next(proxies.Count)];
                            httpRequest.Type = proxiesType;
                            httpRequest.ConnectTimeout = 5000;
                            httpRequest.KeepAliveTimeout = 5000;
                            httpRequest.ReadWriteTimeout = 5000;
                            httpRequest.AddHeader("Content-Type", "application/json");
                            string text3 = httpRequest.Start(HttpMethod.POST, new Uri("https://authserver.mojang.com/authenticate"), new BytesContent(Encoding.UTF8.GetBytes(string.Concat(new string[]
                            {
non of the course i took taught me about http request and idk where to start now im so confused. Can someone please help me i'll appreciate that thanks :)  Pepe
This post is by a banned member (Logoutrd8) - Unhide
This post is by a banned member (ILoveCrackingIt) - Unhide
134
Posts
4
Threads
4 Years of service
#3
(08 April, 2020 - 08:02 AM)Logoutrd8 Wrote: Show More
telegram @logoutrd

I dont use telegram
This post is by a banned member (Logoutrd8) - Unhide
This post is by a banned member (ILoveCrackingIt) - Unhide
134
Posts
4
Threads
4 Years of service
#5
(08 April, 2020 - 08:30 AM)Logoutrd8 Wrote: Show More
use leaf.xnet there u wont need to encode content 
using(HttpRequest req=new HttpRequest){
//add ur headers
req.AddHeader("abc","xyz");
///set req properties like cookies,useragent etc

var res=req.Post("yoururl","postdata","content-type");
//or u can specify post data as
req.AddParam("name","value");


//use xNet , Leaf.xNet not use Xnet amediote


}
Thanks kinda i was looking up what you told me then i found Selenium so im gonna learn about it.. :)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)