use RAW|REQUEST_URI if available (need to check about SCRIPT_NAME)