Issue
I have a feedback form like this
the API for it using a GET method without body. I have to send user input from the 3 TextField
(Nama, Email, Pesan Anda) to GET method API.
I'm clueless, my senior said that I have to use url parameters so I can still send data to API without a body.
How can I do that?
Solution
HTTP GET method has no body on it's requisitions, so yes, the only way to send params is in the url, where you can send like this:
http://{URL}/?nama=Nama&email=Email&pesanAnda=PesanAnda
then you API will have access to these params.
Answered By - Raphael Marques
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.