You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What specific section or headline is this issue about?
fetch example for form url encode and json body request
What information was incorrect, unhelpful, or incomplete?
Take example, we need to send data to server using body param like using forms or even json to server, in the past this example is there, and provided, but after mdn remake it's gone
eg
end point : contact.php
body : name=foo&email=bar&message=hello Mozilla
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/fetch
What specific section or headline is this issue about?
fetch example for form url encode and json body request
What information was incorrect, unhelpful, or incomplete?
Take example, we need to send data to server using body param like using forms or even json to server, in the past this example is there, and provided, but after mdn remake it's gone
eg
end point : contact.php
body : name=foo&email=bar&message=hello Mozilla
should be in example :
or if in JSON we can change it into
What did you expect to see?
Some example for request like for JSON, for URL Encoded/search params and docs regarding it.
Do you have any supporting links, references, or citations?
It's been there for long time, and poof vanish!
Proof : https://stackoverflow.com/a/53189376/4906348
Do you have anything more you want to share?
If allowed, I will add the draft into the docs.
MDN metadata
Page report details
en-us/web/api/fetch
The text was updated successfully, but these errors were encountered: