Skip to content

HttpClient does not support Get with Body in .Net 6 #112

Answered by iammukeshm
trihugger asked this question in Q&A
Discussion options

You must be logged in to vote

I too faced the same dilemma recently.
Maybe just using the POST method makes more sense? as we are actually posting a JSON body to the endpoint. I currently modified the Brands Controller this way.

Now, it's a search endpoint that returns a list of BrandDto based on the applied filters. Make sense, yeah?

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@iammukeshm
Comment options

@trihugger
Comment options

Answer selected by iammukeshm
Comment options

You must be logged in to vote
3 replies
@fretje
Comment options

@trihugger
Comment options

@snax4a
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants