"Paul E Collins" <fi******************@CL4.orgwrote in message
news:9f******************************@bt.com...
| Alfa & Omega wrote:
|
| Do you mean that you want to download a Web page protected by
| Basic-Auth?
|
| HttpWebRequest req = (HttpWebRequest)
| WebRequest.Create("http://example.com/");
| req.Credentials = new NetworkCredential("user", "pass");
| HttpWebResponse resp = (HttpWebResponse) req.GetResponse();
| using (StreamReader reader = new
| StreamReader(resp.GetResponseStream()))
| {
| string response = reader.ReadToEnd();
| reader.Close();
| }
|
| Eq.
|
Yes..that's what I want...download page which is protected by basic -auth...
But now comes the problem ;)..
I tried the code you gave me but it won't work...is there maybe any other way to do this?
page is
http://www.vip.hr/sp/d_sendSMS? .... it's internet portal for sending SMS messages in my
country (Croatia)
So, I was thinking of making application which would log on that page and from that application I
would send messages like from my web browser....problem is that I can't access that page...I can't
log in by this solution..is there any other?
Thanks!