title: Curl and Variables inside http
body: <p>I try to do combination of variable source and destination IP.
  then I would like to send to our software to tell me if traffic is allow or not.
  I am using curl  but I dont know how to add variables there</p>
  
  <p>I need someting like this</p>
  
  <pre><code>curl -ks -X GET 'https://tufin.com/api/path?$line_source$line_destination$line_port
  </code></pre>
  
  <p>but this show me is not variable</p>
  
  <hr>
  
  <pre><code>line_source="$(cat $HOME/src)"
  
  line_destination="$(cat $HOME/dst)"
  
  line_port="$(cat $HOME/port)"
  
  
  prepare_curl=$(echo -e "'https://tufin.com/api/path?src=$line_source&amp;dst=$line_destination&amp;service=$line_port'
  
  result=$(curl -k -s   -X GET $prepare_curl )
  
  echo -e " source $line_source  destination $line_destination   port $line_port   traffic is  $result"
  </code></pre>
  
  <p></p>
  
  <pre><code>curl: option -m: expected a proper numerical parameter
  curl: try 'curl --help' or 'curl --manual' for more information
  </code></pre>