구분 질의
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=JxPJoJzhTB7UFC6jLOzA9W2DpLCA5PgltLFU0wR48Nsh2tJ0weRLfIu9r4IoYXUluaeVD9MeDaL4XI4LT9umsVLq07CW9Lnptfi0SsdudGzs8ru9epJ4BvbqshH0rzO7kqQxHHDHJlQ3JhIzoCiGj818pp7uNTM0l6MH7qLGTl7iRJacQAff3qdTCE%2B1PEncd87Sd2q1UiGeSkSGO702mwEfla7cfxpfwt%2F2edtY%2FX6MAQMKmNE5BoECS3s6qk%2FpHfu%2BBQv0hUHjNciigVMltGM7XqvRUntYWNiFTyVQB9uPnqOfYxI6Ke9Fz8rhbla1bfRdKP2B5sc2S2u5VICrGGyd23VePZRuPJM%2B%2BEWRRtwuqbjTD19AfGdsbz1H24YPY3nXD5CJ8HgABeArGM1DdvpAoq6SwcQQ1Vx3apKON%2BS5tt%2B1nNqqxTV7k9UiKzcfR3bgtT30LoQRiHgYuHhxtw%3D%3D03bc3326d3203f295c68d98cb9e11c157446bda3
    [Accept-encoding] => gzip, br, zstd, deflate
    [Host] => sample.cikorea.net
    [Via] => 1.1 squid-proxy-5b5d847c96-j2hqf (squid/6.13)
    [X-forwarded-for] => 10.2.242.147
    [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.114
$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.0023 seconds)