No http response code found - Joomla! Forum - community, help and support


hii using joomla 2.5.18
php -5.4.12
apache - 2.4.4
mysql - 5.6.12 ,
i trying post data on particular url , response, here code

code: select all

jimport('joomla.http');
$data = array(); // no problem in data array
$transport = null;
$transportwrappers=array('jhttptransportcurl','jhttptransportstream','jhttptransportsocket');
   
$moduleparams = new jregistry();
while (!$transport && $transportwrappers)
    try{
        $wrapper = array_shift($transportwrappers);
        $transport = new $wrapper($moduleparams);
    }
    catch (exception $e){
        continue;
    }
$http = new jhttp($moduleparams, $transport);

$url = 'my_url';
$response = $http->post($url,$data);
print_r($response);

i have checked other forums same problem , suggested check #_update_sites table , table fine, no unknown data there .
i unable figure out problem.i tried same code different url.it worked. there problem in url ?
i dont think there problem in url.
here apache log error
[wed mar 26 13:50:51.154818 2014] [:error] [pid 4504:tid 1664] [client ::1:51174] php 13. jhttp->post() c:\\wamp\\www\\joomla\\components\\com_iflychat\\views\\abc\\tmpl\\default.php:70
[wed mar 26 13:50:51.154818 2014] [:error] [pid 4504:tid 1664] [client ::1:51174] php 14. jhttptransportcurl->request() c:\\wamp\\www\\joomla\\libraries\\joomla\\http\\http.php:122
[wed mar 26 13:50:51.154818 2014] [:error] [pid 4504:tid 1664] [client ::1:51174] php 15. jhttptransportcurl->getresponse() c:\\wamp\\www\\joomla\\libraries\\joomla\\http\\transport\\curl.php:134
please here.

[updated]
it wamp version problem , tried same codes in xampp , worked.






Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached