<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| if ($request_uri = /) { | |
| set $test A; | |
| } | |
| if ($host ~* teambox.com) { | |
| set $test "${test}B"; | |
| } | |
| if ($http_cookie !~* "auth_token") { | |
| set $test "${test}C"; |
| <?php | |
| header('Content-type: application/json'); | |
| if ( array_key_exists('addr', $_GET) ) | |
| $ip = $_GET['addr']; | |
| else | |
| $ip = $_SERVER['REMOTE_ADDR']; | |
| $v6 = preg_match("/^[0-9a-f]{1,4}:([0-9a-f]{0,4}:){1,6}[0-9a-f]{1,4}$/", $ip); | |
| $v4 = preg_match("/^([0-9]{1,3}\.){3}[0-9]{1,3}$/", $ip); |