Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (13.1k points)
Can anyone help me how I can able to make a REST call to the queue? Any help would be appreciated.

1 Answer

0 votes
by (26.7k points)

You can use the below code to make a request for creating a queue:

HttpWebRequest req = (HttpWebRequest)WebRequest.Create(string.Format(CultureInfo.InvariantCulture,

"https://{0}.queue.core.windows.net/{1}",

StorageAccount, queuename));

req.Method = "PUT";

req.Headers.Add("Authorization", AuthorizationHeader);

req.Headers.Add("x-ms-date", mxdate);

req.Headers.Add("x-ms-version", storageServiceVersion);

req.ContentLength = 0;

I hope this will help.

Want to become an Azure Expert? Join Azure Developer Training now!!

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
0 answers

Browse Categories

...