#!/bin/bash SENSORID=${1:-11111111} LIMIT=${2:-0} REQ=GET URL=http://localhost:5000/sensor/get_values/$SENSORID?limit=$LIMIT # URL=http://localhost:5000/sensor/get_values/$SENSORID echo "$REQ $URL" read -p "continue?" -n 1 foo curl \ -X $REQ $URL \ -H "Content-Type: application/json"