Reputation: 1360
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
Reputation: 35124
You are probably missing a proper reference to System.Web
:
#r "System.Web"
using System.Web;
See Referencing External Assemblies.
Upvotes: 6