Sends a POST request and returns the response JSON deserialized as the specified type.
Namespace: PreStorm
Assembly: PreStorm (in PreStorm.dll) Version: 1.8.19.0 (1.8.19.0)
Syntax
public static T Post<T>( string url, string data, Action<HttpWebRequest> requestModifier = null )
Parameters
- url
- Type: SystemString
The target url. - data
- Type: SystemString
The string data to upload. - requestModifier (Optional)
- Type: SystemActionHttpWebRequest
An action that modifies the request.
Type Parameters
- T
Return Value
Type: TSee Also