INNER CODE UNIT · Python

get_value_from_request

OWASP/Python-Honeypot · api/server.py:86

def get_value_from_request(_key):
    """
    Get a value from GET, POST or COOKIES

    Args:
        _key: the value name to find

    Returns:
        the value content if found otherwise None
    """
    try:
        value = flask_request.args[_key]
    except Exception:
        try:
            value = flask_request.form[_key]
        except Exception:
            try:
                value = flask_request.cookies[_key]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…