function issupport(url)
    if url:match("^http://t.cn/") then return true end
    if url:match("^http://url.cn/") then return true end
    return false
end

function analyze(url)
    require('common')
    local json = require('json')
    local page, head = idown.requesturl(url)
    local location = getlocation(head)
    
    local result = {}
    result.Location = location
    return 301, json:encode(result)
end