title: proxy connect aborted curl
body: <p>i am using proxy to connect to whatsApp server but i am always keep getting this error  <strong>proxy connect aborted</strong> what i am missing ??? any idea ?</p>
  
  <pre><code>        $proxy_server = '60.12.11.39';
          $proxy_port = '1080';
          // Configure the connection.
          curl_setopt($ch, CURLOPT_URL, $url);
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
          curl_setopt($ch, CURLOPT_HEADER, 0);
          curl_setopt($ch, CURLOPT_PROXY,$proxy_server.':'. $proxy_port);
          //curl_setopt($ch, CURLOPT_PROXYPORT,"1080"); 
          curl_setopt($ch, CURLOPT_USERAGENT, Constants::WHATSAPP_USER_AGENT);
          curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: text/json'));
          // This makes CURL accept any peer!
          curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
          $response = curl_exec($ch);
          // Close the connection.
              if(curl_exec($ch) === false)
              {
                  echo 'Curl error: ' . curl_error($ch);
              }
              else
              {
                  echo 'Operation completed without any errors';
              }
  
          curl_close($ch);
  </code></pre>