Combination View Flat View Tree View
Threads [ Previous | Next ]
Does anyone know why HTTPS access is slow to my IP Phones? I am using PHP and CURL to perform a CGI/Execute and it is instant with http but with https it is slow (Takes just over 2 seconds to respond). Here is my code...
 
<?php

//Set the Variables used in the script
define('CUCM_PHONE_USER',    'pushuser');
define('CUCM_PHONE_PASSWORD',    'password!');

  $url = "https://192.168.1.8/CGI/Execute";
  $xml = "
  <startMedia>
    <mediaStream>
    <type>audio</type>
    <codec>G.722</codec>
    <mode>receive</mode>
    <address>239.0.0.1</address>
    <port>32000</port>
    </mediaStream>
  </startMedia>";

  $field = "XML=".urlencode($xml);

  $ch = curl_init();
  curl_setopt($ch,CURLOPT_URL,$url);
  curl_setopt($ch,CURLOPT_USERPWD, CUCM_PHONE_USER.":".CUCM_PHONE_PASSWORD);
  curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, false);
  curl_setopt($ch,CURLOPT_POST,1);
  curl_setopt($ch,CURLOPT_HEADER,FALSE);
  curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE);
  curl_setopt($ch,CURLOPT_POSTFIELDS,$field);

  $result = curl_exec($ch);

  curl_close($ch);

  echo $result;

?>

RE: 7965 HTTPS Slow
Answer
7/19/12 6:28 PM as a reply to JAMES DEPHILLIP II.
A network packet capture from the phone may be helpful in determining if the delay is inside the phone or from some other component (application or perhaps the UCM authentication page).  Feel free to attach here.