Some Web sites deny requests that aren't sent by recognized browsers and search engine crawlers. Setting the user agent header of the request is usually sufficient for bypassing this restriction.
36 people like thisPosted: 13 years ago by Taha Hachana
You can use this code to make a async WebRequest from Silverlight to update ViewModel.
5 people like thisPosted: 13 years ago by Tuomas Hietanen
Bit like http://www.fssnip.net/a7 but send as async.
3 people like thisPosted: 6 years ago by Tuomas Hietanen
Get Stock Quote Data and Historical Stock Prices from Yahoo Finance.
237 people like thisPosted: 13 years ago by Tuomas Hietanen
The snippet shows how to send HTTP POST request to a web page and download the generated HTML result. The POST data is encoded as a byte array and written to the request stream of HttpWebRequest.
10 people like thisPosted: 12 years ago by Tomas Petricek
Based on Tomas Petricek's: http://fssnip.net/a7 .
Shows how to handle non OK (200) response codes, where .Net raises an exception upon GetResponse(), which makes it difficult to recover further error information. Here the snippet shows how to handle errors wrapping a Result
Posted: 4 years ago by Joan Arnaldich