#!/bin/bash HOST=127.0.0.1 PORT=8080 echo start to query BEGIN="2021-10-27 10:00:00" END="2022-12-29 23:00:00" BEGIN=${BEGIN/ /%20} END=${END/ /%20} echo start:$BEGIN echo end:$END url="http://$HOST:$PORT/query?start=$BEGIN&end=$END" echo url:$url curl $url