.net - HTTP Get with Body with HttpClient not possible due to ProtocolViolationException -


i know why not recommended have http body, see: http request body

but have third-party service mongodb paas lets query sending http body (the filter clause in http body). doesn't support same query via http post. http body httpclient gives protocolviolationexception complains wrong verb.

in humble opinion, httpclient should discourage non-standard usages (similar adding headers via tryaddwithoutvalidation) not make them impossible. world not perfect after all. httpclient stands in way , paas provider not change apis suit http client.

i read numerous related questions here in , many answers talking why bad have http body , should never it. however, have no control in case.

how can work around problem system.net.http.httpclient?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -