how to get the source code as register user.
Posted
by nir143
on Stack Overflow
See other posts from Stack Overflow
or by nir143
Published on 2010-04-17T09:48:17Z
Indexed on
2010/04/17
9:53 UTC
Read the original article
Hit count: 317
c#
hi. i downloaded a sourcecode of a site,but i downloaded it i saw it identify my program as a guest,i search at google and figure out that i can send a cookie when i "ask" the source code. that what i have managed to do and it still dont identify me as register user:
CookieContainer cj = new CookieContainer();
string all = "";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(Url);
req.CookieContainer = cj;
HttpWebResponse res = (HttpWebResponse)req.GetResponse();
CookieCollection cs=cj.GetCookies(req.RequestUri);
CookieContainer cc = new CookieContainer();
cc.Add(cs);
req.CookieContainer = cc;
StreamReader read = new StreamReader(res.GetResponseStream());
all = read.ReadToEnd();
read.Close();
return all;
what is wrong here? tyvm for help:) (if that help,i can have a simple details of a register user of the site).
© Stack Overflow or respective owner