Body
body
curl -X POST https://tcpdata.com/post \
-H "Content-Type: application/json" \
-d '{"name":"John","email":"john@example.com"}'
fetch('https://tcpdata.com/post', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ name: 'John', email: 'john@example.com' })
})
.then(res => res.json())
.then(data => console.log(data));
import requests
response = requests.post('https://tcpdata.com/post',
json={'name': 'John', 'email': 'john@example.com'})
print(response.json())