.NET Components for Mobility

Peter Foot

Microsoft Windows Phone Development MVP

How To: Use the WebRequestMethods class

Networking In The Hand introduces a repository for all the various method types for FTP and HTTP operations. While the common ones are easy to remember ("GET","POST" etc) many others are not, and so this class (like its desktop equivalent) provides a central place to refer to them, without dotting your code with hard-coded strings. WebRequestMethods contains two static classes - Ftp and Http which as the name suggests contain the two sets of operations. Here we find one used in the previous sample:-

InTheHand.Net.WebRequestMethods.Ftp.GetDateTimestamp

As with all the functionality in the namespace, you'll find the full details in the online documentation library.

>

Read the complete post at http://peterfoot.net/HowToUseTheWebRequestMethodsClass.aspx

Published Oct 09 2007, 11:06 AM by Peter Foot
Filed under:
Copyright © 2001-2012 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy. OrcsWeb's Windows Cloud Server Hosting