Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i can read the cookie from this page.
I can see it in my textbox.
How do I transmit to that page, my id and my password?
or, how do i transmit the cookie?
please help - i am stuck with this for more than 6 months and i cant figure it out. Please help me, im desperate.

This is a winapp, not an asp!

C#
string url = "http://deviantart.com";
string srx = "", int count = 0;


private void button1_Click(object sender, EventArgs e)
        {
            count = 0; srx = "";
            HttpWebRequest request;
            HttpWebResponse response = null;
            Stream stream = null;
            request = (HttpWebRequest)WebRequest.Create(url);
            request.UserAgent = "Foo";
            request.Accept = "*/*";
            response = (HttpWebResponse)request.GetResponse();
            stream = response.GetResponseStream();

            StreamReader sr = new StreamReader(stream, System.Text.Encoding.Default);
            textBox1.Text = sr.ReadToEnd();
            sr.Close();
        }
Posted
Updated 22-Jun-15 19:10pm
v3
Comments
_Q12_ 23-Jun-15 7:00am    
no my friend! I know how to read/write a file on my hdd. And also i know that the cookie is nothing more than a file that the server is sending as a stream when i send a request to it. What i want, is exactly how to communicate with this "http://deviantart.com" server, and send my id log on information. Please, for me is very hard to figure out the intricate solution for this. Can you help me? (using winapp, not asp).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900