Send to Server Form

                Never    
PHP
       
<html>
<head>
<title>Ajax POST to python hosted server</title>
</head>
<body>

    send message: <input type="text" id="message" value="" size="10" placeholder="string,number"> <input type=button id="send" value="send">
    <br />
    response: <span id="response"></span>

</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>
$("input#send").click(function(event) {
    event.preventDefault();

    $.ajax({
        type: 'POST',
        url: 'https//198.211.117.197:8888',
        crossDomain: true,
        data: $('input#message').val(),
        dataType: 'text',
        timeout: 3000,
        success: function(responseData, textStatus, jqXHR) 
        {
            $('span#response').html(responseData);
        },
        error: function (responseData, textStatus, errorThrown) 
        {
            console.warn(responseData, textStatus, errorThrown);
            alert('failed - ' + textStatus);
        }
    });
});
</script>
</html>

Raw Text