Issue while using HttpClient with Il2cpp builds

When I use System.Net.Http.HttpClient with Il2cpp build for android or ios I always get error for ParseQuery String but it works with mono


 Error: called non-existent method System.Collections.Specialized.NameValueCollection System.Web.HttpUtility::ParseQueryString(System.String)

I though it was related to assemblies stripping, so I added a rule to preserve System.Web assembly

	<assembly fullname="System.Web">
		<type fullname="System.Web.HttpRequest" perserve="all"/>
	</assembly>

But This didn’t seem to work


Does anyone have an idea if it is a stripping issue or something related to System.Web dll itself?
I appreciate your help

It looks like the link.xml file you showed is preserving System.Web.HttpRequest, but the missing method is on System.Web.HttpUtility. Maybe try to add System.Web.HttpUtility to the link.xml file as well.