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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -