Get Stock Quotes on the Web with SSL Sockets for .NET

This sample demonstrates how easy it is to get files or data from an Internet resource in ASP.NET with the PowerTCP SSL Sockets for .NET. This sample connects to "finance.yahoo.com" on port 80 (the well-known port for HTTP). An HTTP GET request is then sent for the Yahoo Stock Quote Display Page, specifying the stock quote to get as a query string parameter in the url. This causes the Yahoo server to return an HTML formatted page containing the information for the stock quote, including the current price. The current price is then parsed from the response and displayed. Other information is parsed from the page as well, such as the name of the company, and the percentage change.

Launch the .NET Native TCP Stock Quote Sample Now!.

This script demonstrates how easy it is to implement a protocol (HTTP) using the Tcp component included with PowerTCP SSL Sockets for .NET. Modify this to implement any protocol you wish.

If you are interested in this sample be sure to see these links: