구분 질의
POST
GET
Set Cookie
POST
$this->input->post()
$this->input->post(NULL, TRUE)
$this->input->post('test')
$this->input->post('test', TRUE)
GET
$this->input->get()
$this->input->get(NULL, TRUE)
$this->input->get('test')
$this->input->get('test', TRUE)
GET, POST
$this->input->get_post('test')
$this->input->get_post('test', TRUE)
COOKIE
$this->input->cookie('test')
$this->input->cookie('test', TRUE)
SERVER
$this->input->server('HTTP_HOST') sample.cikorea.net
REQUEST_HEADER
$this->input->request_headers()
Array
(
    [Accept] => */*
    [User-agent] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
    [Cookie] => ci_session=DqheiTCskb4cHnFeEPeLvkfC1jw5vImU4zfI%2Bmu4F%2Fu%2B0MKZl3mCNYLiUdBnh4TFaJmknYIFabbfpwPUzGvII7Zu57TZ3avlf4UIHpHJKgsemBBxgaaxSXzJiebUWRqO%2BaxANQYNOa5gWQYtqeusvYogWH2qxXREYzGUkrrsEsTFJ%2BIF70BEMbjoL%2B4XQz1tMQZvmHcHbQDT21KkvR50hCJHZOaZmlUXPMy7Bcn%2FXprP%2FhoBpnQHbIF7bnqelZHmeEadjhm%2FAeSTZUBBnM3dkwVtyYDy5MvNFBK5poWV4u6E%2BvHO6p%2FYdchtgAfoZTGICFh8%2FMHOeCWnALNGhgRMNHUIoJxo4w4e5HHZDzeGik4MOWc5wg93BMoj5nrPsWkccXtVtsYoTqIfZqg1ZabvPz6z9%2F3HLssQMJoV4Z0NePX2DYYI8qPLaVxiv3GGXGcJlYxoeNhFkV5QB211J2MHOg%3D%3D3fe9b9beaa6cae31a12cc327c5bd6ba749ba559d
    [Accept-encoding] => gzip, br, zstd, deflate
    [Host] => sample.cikorea.net
    [Via] => 1.1 squid-proxy-5b5d847c96-n2x2s (squid/6.10)
    [X-forwarded-for] => 10.2.98.205
    [Cache-control] => max-age=259200
    [Connection] => keep-alive
)
$this->input->get_request_header('Host') sample.cikorea.net
ETC
$this->input->ip_address() 216.73.216.74
$this->input->user_agent() Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
$this->input->valid_ip('168.126.63.1') TRUE
$this->input->is_ajax_request() FALSE
$this->input->is_cli_request() FALSE

// End of Sample

© Copyright by hoksi(Page rendered in 0.0080 seconds)