HttpClient DELETE with object -



HttpClient DELETE with object -

i making solution against rest-interface using c# - httpclient , newtonsoft.json.

one of methods requires delete url , json-object.

i not able alter rest-service, has solved in own code.

what missing delete-alternative myclient.postasjsonasync(url,json-object)

i aware, seems possible using solved using httpwebrequest, rather go on using httpclient.

so have clue how solve this?

simply utilize httpclient.deleteasync(url), , why not set target of delete url, /api/products/id instead of passing json object.

dotnet-httpclient

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -