SYSPATH/classes/Kohana/Request/Client/Curl.php [ 105 ]
100 // Close the connection
101 curl_close($curl);
102
103 if (isset($error))
104 {
105 throw new Request_Exception('Error fetching remote :url [ status :code ] :error',
106 array(':url' => $request->url(), ':code' => $code, ':error' => $error));
107 }
108
109 $response->status($code)
110 ->body($body);
-
SYSPATH/classes/Kohana/Request/Client/External.php [ 140 ] » Kohana_Request_Client_Curl->_send_message(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(4) "POST" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(42) "https://www.poisklekarstv.com.ua/get_price" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(51) "#^https://www\.poisklekarstv\.com\.ua/get_price$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(2){ public content-type => string(48) "application/x-www-form-urlencoded; charset=utf-8" public content-length => string(2) "51" }
protected _body => string(51) "atc=R05CB06&secret=9943b62de369de4767fcbfac05d3224e" protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(42) "https://www.poisklekarstv.com.ua/get_price" protected _external => bool TRUE protected _params => array(0) protected _get => array(0) protected _post => array(2) ( "atc" => string(7) "R05CB06" "secret" => string(32) "9943b62de369de4767fcbfac05d3224e" ) protected _cookies => array(0) protected _client => object Request_Client_Curl(9){ protected _options => array(2) ( 19913 => bool TRUE 42 => bool FALSE ) protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }135 $request->headers('user-agent', Kohana::version()); 136 } 137 138 try 139 { 140 $response = $this->_send_message($request, $response); 141 } 142 catch (Exception $e) 143 { 144 // Restore the previous request 145 Request::$current = $previous;
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_External->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(4) "POST" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(42) "https://www.poisklekarstv.com.ua/get_price" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(51) "#^https://www\.poisklekarstv\.com\.ua/get_price$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(2){ public content-type => string(48) "application/x-www-form-urlencoded; charset=utf-8" public content-length => string(2) "51" }
protected _body => string(51) "atc=R05CB06&secret=9943b62de369de4767fcbfac05d3224e" protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(42) "https://www.poisklekarstv.com.ua/get_price" protected _external => bool TRUE protected _params => array(0) protected _get => array(0) protected _post => array(2) ( "atc" => string(7) "R05CB06" "secret" => string(32) "9943b62de369de4767fcbfac05d3224e" ) protected _cookies => array(0) protected _client => object Request_Client_Curl(9){ protected _options => array(2) ( 19913 => bool TRUE 42 => bool FALSE ) protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(4) "POST" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(42) "https://www.poisklekarstv.com.ua/get_price" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(51) "#^https://www\.poisklekarstv\.com\.ua/get_price$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(2){ public content-type => string(48) "application/x-www-form-urlencoded; charset=utf-8" public content-length => string(2) "51" }
protected _body => string(51) "atc=R05CB06&secret=9943b62de369de4767fcbfac05d3224e" protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(42) "https://www.poisklekarstv.com.ua/get_price" protected _external => bool TRUE protected _params => array(0) protected _get => array(0) protected _post => array(2) ( "atc" => string(7) "R05CB06" "secret" => string(32) "9943b62de369de4767fcbfac05d3224e" ) protected _cookies => array(0) protected _client => object Request_Client_Curl(9){ protected _options => array(2) ( 19913 => bool TRUE 42 => bool FALSE ) protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}988 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 989 ':uri' => $this->_uri, 990 )); 991 } 992 993 return $this->_client->execute($this); 994 } 995 996 /** 997 * Returns whether this request is the initial request Kohana received. 998 * Can be used to test for sub requests.
-
APPPATH/classes/Controller/Index.php [ 123 ] » Kohana_Request->execute()
118 ->post(array( 119 'atc' => $pill->atc, 120 'secret' => md5('krishkevich') 121 )); 122 123 $plua_result = $plua_request->execute(); 124 $plua_json = json_decode($plua_result); 125 126 $plua_price = array(); 127 foreach ($plua_json as $_pl_cpath => $_pl_price) { 128 $plua_price[$_pl_cpath] = $_pl_price;
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Index->action_index()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Index(8)
{ public template => object View(2)
{ protected _file => string(60) "/var/www/analogi/analogi.info/application/views/template.php" protected _data => array(4) ( "content" => string(0) "" "meta_title" => string(59) "Аналоги лекарств. Цены в аптеках" "meta_description" => string(264) "Аналоги и заменители лекарств, поиск дешевых аналогов, аналоги по составу и показанию к применению. Цены на лекарства в городах …" "meta_keywords" => string(236) "аналоги, заменители, синонимы, дженерики, дешевые аналоги, недорогие аналоги, популярные аналоги, поиск и сравнение цен в аптека …" ) }
public breadcrumbs => array(0) public user => NULL public session => object Session_Native(5){ protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
public currency => object Model_Currency(34){ protected _table_name => string(8) "currency" protected _has_one => array(0) protected _belongs_to => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(3) ( "id" => string(1) "1" "rub" => string(4) "0.36" "date" => string(10) "2021-02-02" ) protected _changed => array(0) protected _original_values => array(3) ( "id" => string(1) "1" "rub" => string(4) "0.36" "date" => string(10) "2021-02-02" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(8) "currency" protected _object_plural => string(10) "currencies" protected _table_columns => array(3) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "rub" => array(10) ( "type" => string(5) "float" "column_name" => string(3) "rub" "column_default" => NULL "data_type" => string(6) "double" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "date" => array(10) ( "type" => string(6) "string" "column_name" => string(4) "date" "column_default" => NULL "data_type" => string(4) "date" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)
public auto_render => bool TRUE public request => object Request(19){ protected _connection_id => string(40) "938236df1dd7392224ef0d9f23f8264aee615783" protected _identifier => string(1) "`" public last_query => string(139) "SELECT `currency`.`id` AS `id`, `currency`.`rub` AS `rub`, `currency`.`date` AS `date` FROM `currency` AS `currency` WHERE `id` …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(7) "analogi" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }
protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(8) "currency" }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(9) "(<title>)" protected _regex => array(1) ( "title" => string(11) "[a-z0-9_-]+" ) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(33) "#^(?:(?P<title>[a-z0-9_-]+))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Index" protected _action => string(5) "index" protected _uri => string(14) "flavamed-forte" protected _external => bool FALSE protected _params => array(1) ( "title" => string(14) "flavamed-forte" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(9) "(<title>)" protected _regex => array(1) ( "title" => string(11) "[a-z0-9_-]+" ) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(33) "#^(?:(?P<title>[a-z0-9_-]+))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Index" protected _action => string(5) "index" protected _uri => string(14) "flavamed-forte" protected _external => bool FALSE protected _params => array(1) ( "title" => string(14) "flavamed-forte" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(9) "(<title>)" protected _regex => array(1) ( "title" => string(11) "[a-z0-9_-]+" ) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(33) "#^(?:(?P<title>[a-z0-9_-]+))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Index" protected _action => string(5) "index" protected _uri => string(14) "flavamed-forte" protected _external => bool FALSE protected _params => array(1) ( "title" => string(14) "flavamed-forte" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}988 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 989 ':uri' => $this->_uri, 990 )); 991 } 992 993 return $this->_client->execute($this); 994 } 995 996 /** 997 * Returns whether this request is the initial request Kohana received. 998 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 118 ] » Kohana_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 } 122