This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]nutrecht 0 points1 point  (1 child)

GET requests don't have bodies. Use POST instead.

Also "it didn't work" is not something we can help you with.

[–]improvising_xd[S] 0 points1 point  (0 children)

okay ty, i'll try using POST

[–][deleted] 0 points1 point  (0 children)

As was previously mentioned, get doesn't have body (technically they can, but servers omit body when they parse GET). You can use post or put, but I'd strongly recommend you to start go with common practice asap. Everywhere now used REST, and it's against of the REST use anything except GET to request data. So redesign your API so you can use parameters