NetworkCredential credential = new NetworkCredential("XXXX", "XXXX"); //USERNAME,PWD HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(target_url); wr.Credentials = credential; wr.Method = "POST"; HttpWebResponse wrs = (HttpWebResponse)wr.GetResponse(); StreamReader sr = new StreamReader(wrs.GetResponseStream(), Encoding.GetEncoding("ISO-8859-1"), false); source = sr.ReadToEnd();
'DefaultCredentials=true'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)