← Back to Home

/anything

/anything
Accepts any HTTP method and returns request data. Useful for testing different HTTP verbs.

Parameters

Any data body
Accepts any request body and method

Examples

curl
curl -X POST https://tcpdata.com/anything/test -d 'sample=data'
JavaScript (fetch)
fetch('https://tcpdata.com/anything/custom-path', {
  method: 'PUT',
  body: JSON.stringify({ test: 'data' })
})
  .then(res => res.json())
  .then(data => console.log(data));
Python (requests)
import requests

response = requests.put('https://tcpdata.com/anything/test',
    json={'sample': 'data'})
print(response.json())