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:-


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