I am trying to send http request via https in cross platform project with shared projects. So far i have tried WebClient and WebRequest classes. WebCLient doesn't allow custom headers. With Web Request when i add header:
HttpWebRequest req = HttpWebRequest.CreateHttp( "https://www.google.com" ); req.Headers["Content-Type"] = "application/json";
I get TargetInvocationError( java.lang exception ).
Do you how this can be achieved in a cross-platform fashion.