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

Jump to content

rdp.sh - cheap RDPs for checking


Photo

[C# HTTP REQUESTS] Help needed with C# EUNE LOL Checker im making


  • Please log in to reply
[C# HTTP REQUESTS] Help needed with C# EUNE LOL Checker im making

#1

SolarPower
SolarPower
    Offline
    124
    Rep
    361
    Likes

    Expect the unexpected, they say, but once the unexpected happens

Posts: 1404
Threads: 179
Joined: May 27, 2018
Credits: 2

Two years registered
#1

Hey guys so i stared making my own league checker, however i reached a point where i dont know what to do next. 

 

I need someone who knows C# Or web requests in general to help me fix this. 

 

So this is my Code for requests 

                 request: try
                     {
                         using (HttpRequest req = new HttpRequest())
                         {
                             req.Proxy = proxy[new Random().Next(proxy.Count)];
                             req.Type = proxytype;
                             
                             req.ConnectTimeout = timeout;
                             req.KeepAliveTimeout = timeout;
                             req.ReadWriteTimeout = timeout;
                             req.Referer = "https://auth.riotgames.com/login";
        
                             
                            
                             //req.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36";
                             
                             
                             req.AddHeader("Content-Type", "application/json");
                             
                             string response = req.Start(HttpMethod.POST, new Uri("https://auth.riotgames.com/api/v1/authorization"), new BytesContent(Encoding.UTF8.GetBytes("{ \"type\":\"auth\",\"username\":\"" + username + "\",\"password\":\"" + password + "\",\"region\":\"EUN1\",\"remember\":false,\"language\":\"en_US\"}"))).ToString();
                             
                             Console.WriteLine(response);


                         }
                     }
                     catch {
                         goto request;

This is normally how the request header looks like

https://imgur.com/3jOiBoO

 

And this is response 

https://imgur.com/WdoXDZM

 

And this is the issue i have

{"type":"error","error":"invalid_request","error_description":"Invalid request: Missing \"client_id\" parameter"}

All i know is that it requires me to send them client_id however im not sure what it is and how i should send it (add it to the request or response).

 

Any help highly appreciated

giphy.gif

 


  • 0

?url=https%3A%2F%2Fi.imgur.com%2Fvi7fEYf

My Programming Discord Server: https://discord.gg/kMn8Ag7


#2

NullCheats
NullCheats
    Online
    353
    Rep
    1498
    Likes

    HvH.site | Coder | Leaker

Posts: 3847
Threads: 345
Joined: Sep 05, 2018
Credits: 4

Two years registered
#2

I mean it says

 

 

{"type":"error","error":"invalid_request","error_description":"Invalid request: Missing \"client_id\" parameter"}

 

 

missing a CLIENT ID so i am assuming you need to set that in the POST data 

 

 

request.Header = ("client_id" ,"ID OR SOMETHING LIKE DIS");


  • 1

RaneBot | Discord (click to join)

 

?url=https%3A%2F%2Fi.imgur.com%2FcyOQbqx

?url=https%3A%2F%2Fi.imgur.com%2FinTCVG8


#3

SolarPower
SolarPower
    Offline
    124
    Rep
    361
    Likes

    Expect the unexpected, they say, but once the unexpected happens

Posts: 1404
Threads: 179
Joined: May 27, 2018
Credits: 2

Two years registered
#3

 

I mean it says

 

 

{"type":"error","error":"invalid_request","error_description":"Invalid request: Missing \"client_id\" parameter"}

 

 

missing a CLIENT ID so i am assuming you need to set that in the POST data 

 

 

request.Header = ("client_id" ,"ID OR SOMETHING LIKE DIS");

I tried to add it but no luck ;/


  • 0

?url=https%3A%2F%2Fi.imgur.com%2Fvi7fEYf

My Programming Discord Server: https://discord.gg/kMn8Ag7


#4

NullCheats
NullCheats
    Online
    353
    Rep
    1498
    Likes

    HvH.site | Coder | Leaker

Posts: 3847
Threads: 345
Joined: Sep 05, 2018
Credits: 4

Two years registered
#4

pm me your discord tomorrow ill try and help you / sort it out for you lol 


  • 0

RaneBot | Discord (click to join)

 

?url=https%3A%2F%2Fi.imgur.com%2FcyOQbqx

?url=https%3A%2F%2Fi.imgur.com%2FinTCVG8


#5

SolarPower
SolarPower
    Offline
    124
    Rep
    361
    Likes

    Expect the unexpected, they say, but once the unexpected happens

Posts: 1404
Threads: 179
Joined: May 27, 2018
Credits: 2

Two years registered
#5

pm me your discord tomorrow ill try and help you / sort it out for you lol 

:pepolove: Sent a message to you. 

Thanks for that.


  • 0

?url=https%3A%2F%2Fi.imgur.com%2Fvi7fEYf

My Programming Discord Server: https://discord.gg/kMn8Ag7


#6

SolarPower
SolarPower
    Offline
    124
    Rep
    361
    Likes

    Expect the unexpected, they say, but once the unexpected happens

Posts: 1404
Threads: 179
Joined: May 27, 2018
Credits: 2

Two years registered
#6

help still needed 


  • 0

?url=https%3A%2F%2Fi.imgur.com%2Fvi7fEYf

My Programming Discord Server: https://discord.gg/kMn8Ag7


#7

DarkStarWarden
DarkStarWarden
    Offline
    2
    Rep
    109
    Likes

    Veteran

Posts: 771
Threads: 49
Joined: Nov 06, 2017
Credits: 0

Two years registered
#7

Hey guys so i stared making my own league checker, however i reached a point where i dont know what to do next. 

 

I need someone who knows C# Or web requests in general to help me fix this. 

 

So this is my Code for requests 

                 request: try
                     {
                         using (HttpRequest req = new HttpRequest())
                         {
                             req.Proxy = proxy[new Random().Next(proxy.Count)];
                             req.Type = proxytype;
                             
                             req.ConnectTimeout = timeout;
                             req.KeepAliveTimeout = timeout;
                             req.ReadWriteTimeout = timeout;
                             req.Referer = "https://auth.riotgames.com/login";
        
                             
                            
                             //req.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36";
                             
                             
                             req.AddHeader("Content-Type", "application/json");
                             
                             string response = req.Start(HttpMethod.POST, new Uri("https://auth.riotgames.com/api/v1/authorization"), new BytesContent(Encoding.UTF8.GetBytes("{ \"type\":\"auth\",\"username\":\"" + username + "\",\"password\":\"" + password + "\",\"region\":\"EUN1\",\"remember\":false,\"language\":\"en_US\"}"))).ToString();
                             
                             Console.WriteLine(response);


                         }
                     }
                     catch {
                         goto request;

This is normally how the request header looks like

https://imgur.com/3jOiBoO

 

And this is response 

https://imgur.com/WdoXDZM

 

And this is the issue i have

{"type":"error","error":"invalid_request","error_description":"Invalid request: Missing \"client_id\" parameter"}

All i know is that it requires me to send them client_id however im not sure what it is and how i should send it (add it to the request or response).

 

Any help highly appreciated

giphy.gif

I don't know C# but firstly I think it's a PUT request not POST regardless of that I think you should just find a config such as this one: https://www.nulled.t... +euw +configĀ 
and use the same api and post data it uses sorry if I didn't help

edit: don't forget to change: &username=EUW1 to &username=EUN1  
so it works for EUNE instead of EUW


  • 1

#8

SolarPower
SolarPower
    Offline
    124
    Rep
    361
    Likes

    Expect the unexpected, they say, but once the unexpected happens

Posts: 1404
Threads: 179
Joined: May 27, 2018
Credits: 2

Two years registered
#8

I don't know C# but firstly I think it's a PUT request not POST regardless of that I think you should just find a config such as this one: https://www.nulled.t... +euw +configĀ 
and use the same api and post data it uses sorry if I didn't help

edit: don't forget to change: &username=EUW1 to &username=EUN1  
so it works for EUNE instead of EUW

Everything helps dude. Thanks !


  • 0

?url=https%3A%2F%2Fi.imgur.com%2Fvi7fEYf

My Programming Discord Server: https://discord.gg/kMn8Ag7


#9

Thelonewof787
Thelonewof787
    Offline
    0
    Rep
    0
    Likes

    Member

  • PipPipPip
Posts: 27
Threads: 0
Joined: Sep 20, 2019
Credits: 0

One year registered
#9

thank you for the tips


  • 0

#10

anas313
anas313
    Offline
    0
    Rep
    1
    Likes

    New Member

  • PipPip
Posts: 12
Threads: 0
Joined: Oct 25, 2019
Credits: 0
Half year registered
#10

help still needed


  • 0


 Users browsing this thread: