GithubHelp home page GithubHelp logo

How I Can Read Cookies about leaf.xnet HOT 5 CLOSED

csharp-leaf avatar csharp-leaf commented on September 14, 2024
How I Can Read Cookies

from leaf.xnet.

Comments (5)

grandsilence avatar grandsilence commented on September 14, 2024

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");

from leaf.xnet.

s0ciopa7h avatar s0ciopa7h commented on September 14, 2024

How to Convert to string ?
2018-11-07_192153
when i try like this (the result in photo)
var req = new HttpRequest();
string response = req.Get("https://twitter.com/login").ToString();
var cookies = req.Cookies.GetCookies("https://twitter.com/login");
txtbbb.Text = cookies.ToString();

from leaf.xnet.

grandsilence avatar grandsilence commented on September 14, 2024
foreach (Cookie cookie in cookies) {
    // concat your string or do what you want
    Console.WriteLine(cookie.Name + ": " + cookie.Value);
}

from leaf.xnet.

s0ciopa7h avatar s0ciopa7h commented on September 14, 2024

Thank You Sir <3

from leaf.xnet.

 avatar commented on September 14, 2024

Hello Man
I used you way and it worked
but it just shows one of the cookies
the others will not be able to see

what can i do till i get all the cookies?
thnks

from leaf.xnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.