← Back to Home

HTML Response

/html
Returns a sample HTML page with text/html content-type. Useful for testing HTML parsing.

Examples

curl
curl https://tcpdata.com/html
JavaScript (fetch)
fetch('https://tcpdata.com/html')
  .then(res => res.text())
  .then(html => console.log(html));
Python (requests)
import requests

response = requests.get('https://tcpdata.com/html')
print(response.text)