← Back to Home

POST

/post
Returns POST request data including form data, JSON payload, headers, and origin IP. Supports application/json, application/x-www-form-urlencoded, and multipart/form-data.

Parameters

Body body
Accepts JSON, form data, or raw text in request body

Examples

curl
curl -X POST https://tcpdata.com/post \
  -H "Content-Type: application/json" \
  -d '{"name":"John","email":"john@example.com"}'
JavaScript (fetch)
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));
Python (requests)
import requests

response = requests.post('https://tcpdata.com/post',
    json={'name': 'John', 'email': 'john@example.com'})
print(response.json())