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



   2260

Yo how to do parse a response cookie in Leaf.xNet??

by OTPBoss - 30 July, 2021 - 03:00 AM
This post is by a banned member (OTPBoss) - Unhide
OTPBoss  
Infinity
27
Posts
11
Threads
4 Years of service
#1
I swear this shit is so goddamn counter intuitive. But i have gone too far in the project to switch. Its such a simple task but i swear ive tried everything ive combed the assembly source google the whole 9. So someone who knows please help me out.
[Image: giphy.gif]
This post is by a banned member (Summer) - Unhide
Summer  
Godlike
2.048
Posts
355
Threads
5 Years of service
#2
Leaf.xNet using native cookie storage with cross-domain cookies so you need to provide resource url before get cookie collection.
var req = new HttpRequest();
string response = req.Get("https://twitter.com/login").ToString();
var cookies = req.Cookies.GetCookies("https://twitter.com");

Or

foreach (Cookie cookie in cookies) {
// concat your string or do what you want
Console.WriteLine(cookie.Name + ": " + cookie.Value);
}
[Image: 4v63n7I.gif]

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)