import requests


def post_input_form(input_text):
    """Posts a string as a form field (application/x-www-form-urlencoded)
    named 'input' to the REST API and returns the response.
    """
    url = 'http://localhost:5000/parse'
    return requests.post(url, data={'input': input_text})