Ryan
Ryan

Reputation: 1360

Call HttpUtility from within Azure Functions

I am trying to make a REST call from within Azure Functions. For these lines of code:

var client = new HttpClient();
var queryString = HttpUtility.ParseQueryString(string.Empty);

I get the following error.

The name 'HttpUtility' does not exist in the current context

I am using the web interface in Azure.com.

Upvotes: 1

Views: 1403

Answers (1)

Mikhail Shilkov
Mikhail Shilkov

Reputation: 35124

You are probably missing a proper reference to System.Web:

#r "System.Web"
using System.Web; 

See Referencing External Assemblies.

Upvotes: 6

Related Questions