title: GET request via CURL in PHP
body: <p>I have CURL script as below:</p>
  
  <pre><code>$url= 'https://www.test.com/test.php';
  $msg=?p1={1250.feed}&amp;p2={jt2221}&amp;p3={1330}&amp;p4={1234567890}&amp;p5={2016-02-04 20:05:34}&amp;p6={New York}; 
  
  $url .= $msg;
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  $result = curl_exec($ch);
  curl_close($ch);
  if (curl_errno($ch)) {
      echo 'Error: ' . curl_error($ch);
  }
  $http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  curl_close($ch);
  
  var_dump($http_status);
  var_dump($result);
  </code></pre>
  
  <p>the full string url and message , when I copy/past on Chrome web browser the remote PHP file receives well. When same url+message sent by PHP script not works. I guess the problem is first the remote domain is HTTPS , second seems curly brackets and space disturbs the CURL request.I tried <code>urlencode($msg)</code> function then got Error 404 . On success sent message , remote PHP returns <code>{"Code":null,"Msg":"."}</code> as ACK</p>