DEV Community

Discussion on: Catch and parse JSON Post data in PHP

Collapse
 
tmblog profile image
tmblog

Nice! Any headers etc to put in the receiving end in order to accept only post/json?

Collapse
 
dev_nope profile image
Vasile Stefirta πŸ‡²πŸ‡© ✈️ πŸ‡ΊπŸ‡Έ

You shouldn't need to. You only set the Content-Type: application/json when sending out the request.