16.10. Accessing the REST API Directly
Now that you have worked with the StorageClient, I think it is useful to understand what is happening behind the scenes. In the previous example, you created a container to store your images, called pictures. You will now create an application to list all the containers in your local Azure storage by constructing the raw HTTP request.
16.10.1. How Do You Work with the REST API?
To interface with the Azure storage REST API, you will construct a request using the WebRequest classes. You need to do the following:
Make an HTTP request to a URL and port. The following URL, for example, is used to retrieve a list of containers held in Azure storage: