Click here to Skip to main content
15,914,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Guys.
I am trying to get the HTML content of web page.
webclient wc = new webclient();
string html = wc.DownLoadtring("https://login.live.com/login.srf?wa=wsignin1.0&wtrealm=http%3a%2f%2fcorp.sts.microsoft.com&wctx=7b4cd04b-7dc2-4880-9f77-20c8c6ef64c4&wct=2013-03-11T06%3a54%3a42Z&whr=uri%3aWindowsLiveID[^]);
But when i examine the htmo content of above string i get error msg "
Microsoft account requires JavaScript to sign in. This web browser either does not support JavaScript, or scripts are being blocked.
"
I dont understand how to handle this. Tried Using httpwebrequest class also but same result.PLease help me on this....
Posted

1 solution

Hi Muttaraj,

Looks like your code is working well!

It's a reply from the website you are trying to access (in this case MS Live). The web-site it trying to login the user but you are not able to do this with a webclient.

WebClient is (just) an HTTP client!
What you can do is use WebBrowser instead and it does support scripts.

Cheers,
Edo
 
Share this answer
 

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