CanonicalizationStrategy.CanonicalizeHttpRequest Method (Uri, String, String, String, String, NameValueCollection)

Storage Client Library NET API

[This topic is part of the Microsoft Azure Storage Client Library 1.7, which has been deprecated. See Storage Client Library for the latest version.]

Constructs a canonicalized string from the request's headers that will be used to construct the signature string for signing a Blob or Queue service request under the Shared Key Lite authentication scheme.

Namespace: Microsoft.WindowsAzure.StorageClient.Protocol
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)

Usage

Visual Basic
Dim address As Uri
Dim accountName As String
Dim method As String
Dim contentType As String
Dim date As String
Dim headers As NameValueCollection
Dim returnValue As String

returnValue = CanonicalizationStrategy.CanonicalizeHttpRequest(address, accountName, method, contentType, date, headers)

Syntax

Visual Basic
Protected Shared Function CanonicalizeHttpRequest ( _
	address As Uri, _
	accountName As String, _
	method As String, _
	contentType As String, _
	date As String, _
	headers As NameValueCollection _
) As String
C#
protected static string CanonicalizeHttpRequest (
	Uri address,
	string accountName,
	string method,
	string contentType,
	string date,
	NameValueCollection headers
)
C++
protected:
static String^ CanonicalizeHttpRequest (
	Uri^ address, 
	String^ accountName, 
	String^ method, 
	String^ contentType, 
	String^ date, 
	NameValueCollection^ headers
)
J#
JScript

Parameters

address

Type: System.Uri

The request URI.

accountName

Type: System.String

The storage account name.

method

Type: System.String

The verb to be used for the HTTP request.

contentType

Type: System.String

The content type of the HTTP request.

date

Type: System.String

The date/time specification for the HTTP request.

headers

Type: System.Collections.Specialized.NameValueCollection

A collection of additional headers specified on the HTTP request.

Return Value

Type: System.String

A canonicalized string.

Remarks

For more details about this API, see the topics on the equivalent REST APIs in See Also > Other Resources.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

See Also