ClickHouse/dbms/tests/queries/0_stateless/00265_content_type.sh

10 lines
825 B
Bash
Raw Normal View History

2015-10-30 21:24:41 +00:00
#!/bin/bash
curl -vsS http://localhost:8123/?default_format=JSONCompact --data-binary @- <<< "SELECT 1" 2>&1 | grep '< Content-Type';
curl -vsS http://localhost:8123/ --data-binary @- <<< "SELECT 1 FORMAT JSON" 2>&1 | grep '< Content-Type';
curl -vsS http://localhost:8123/ --data-binary @- <<< "SELECT 1" 2>&1 | grep '< Content-Type';
curl -vsS http://localhost:8123/ --data-binary @- <<< "SELECT 1 FORMAT TabSeparated" 2>&1 | grep '< Content-Type';
curl -vsS http://localhost:8123/ --data-binary @- <<< "SELECT 1 FORMAT Vertical" 2>&1 | grep '< Content-Type';
curl -vsS http://localhost:8123/ --data-binary @- <<< "SELECT 1 FORMAT Native" 2>&1 | grep '< Content-Type';
curl -vsS http://localhost:8123/ --data-binary @- <<< "SELECT 1 FORMAT RowBinary" 2>&1 | grep '< Content-Type';