blob: 451a96e6d7c4a173635a05caa9d4badf54e115da [file] [log] [blame]
<!DOCTYPE html>
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
<title>DIAL Security Test CORS</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src=""></script>
var makePost=function(app){
console.log("make dial post...");
var ip = $("#ipAddress").val();
var port = $("#dialPort").val();
var urlStr = "http://"+ip+":"+port+"/apps/"+app;
$("#status").text("posted to "+urlStr);
type: "POST",
url: urlStr,
data: "v=QH2-TGUlwu4",
dataType: "text/plain; charset=\"utf-8\""
$( "#testNetflix" ).click(function(){
console.log("testing Netflix");
$( "#testYoutube" ).click(function(){
console.log("testing Youtube");
<input id="ipAddress" type="text" name="ip" value="">
<input id="dialPort" type="text" name="port" value="8060">
<button id="testNetflix">Test Netflix</button>
<button id="testYoutube">Test Youtube</button>
<div id="status"></div>