← Back to Home

ETag Test

/etag/:etag
Tests ETag handling with If-None-Match and If-Match headers.

Parameters

etag path
ETag value to test

Examples

curl
curl -H "If-None-Match: test123" https://tcpdata.com/etag/test123
JavaScript (fetch)
fetch('https://tcpdata.com/etag/test123', {
  headers: { 'If-None-Match': 'test123' }
})
  .then(res => console.log(res.status));
Python (requests)
import requests

headers = {'If-None-Match': 'test123'}
response = requests.get('https://tcpdata.com/etag/test123', headers=headers)
print(response.status_code)