blob: 780b5be5984131e0878ca443998c3586956d8410 [file] [log] [blame]
jefff1ba4b72012-09-03 15:20:01 -07001<?xml version = "1.0" encoding="utf-8" ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3"DTD/xhtml1-strict.dtd">
4<html xmlns = "http://www.w3.org/1999/xhtml">
5
6<head>
7 <title>NDN Get</title>
8 <script type="text/javascript" src="../java_socket_bridge.js"></script>
9
10 <script type="text/javascript" src="../CCNProtocolDTags.js"></script>
11
12 <script type="text/javascript" src="../CCNTime.js"></script>
13
Jeff Thompsonf3bd3592012-09-29 23:25:30 -070014 <script type="text/javascript" src="../Name.js"></script>
jefff1ba4b72012-09-03 15:20:01 -070015
16 <script type="text/javascript" src="../ContentObject.js"></script>
17
18 <script type="text/javascript" src="../DateFormat.js"></script>
19
20 <script type="text/javascript" src="../Exclude.js"></script>
21
22 <script type="text/javascript" src="../ExcludeAny.js"></script>
23
24 <script type="text/javascript" src="../ExcludeComponent.js"></script>
25
26 <script type="text/javascript" src="../Interest.js"></script>
27
28 <script type="text/javascript" src="../KeyLocator.js"></script>
29
jefff1ba4b72012-09-03 15:20:01 -070030 <script type="text/javascript" src="../PublisherID.js"></script>
31
32 <script type="text/javascript" src="../Signature.js"></script>
33
34 <script type="text/javascript" src="../SignedInfo.js"></script>
35
36 <script type="text/javascript" src="../PublisherPublicKeyDigest.js"></script>
37
38 <script type="text/javascript" src="../FaceInstance.js"></script>
39
40 <script type="text/javascript" src="../ForwardingEntry.js"></script>
41
42
43 <script type="text/javascript" src="../encoding/BinaryXMLEncoder.js"></script>
44
45 <script type="text/javascript" src="../encoding/BinaryXMLCodec.js"></script>
46
47 <script type="text/javascript" src="../encoding/BinaryXMLDecoder.js"></script>
48
49 <script type="text/javascript" src="../encoding/DataUtils.js"></script>
50
51 <script type="text/javascript" src="../encoding/EncodingUtils.js"></script>
52
53 <script language="JavaScript" type="text/javascript" src="../security/KeyManager.js"></script>
54
55 <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn.js"></script>
56 <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn2.js"></script>
57 <script language="JavaScript" type="text/javascript" src="../securityLib/rsa.js"></script>
58 <script language="JavaScript" type="text/javascript" src="../securityLib/rsa2.js"></script>
59
60 <script language="JavaScript" type="text/javascript" src="../securityLib/sha1.js"></script>
61 <script language="JavaScript" type="text/javascript" src="../securityLib/sha256.js"></script>
62 <script language="JavaScript" type="text/javascript" src="../securityLib/sha512.js"></script>
63 <script language="JavaScript" type="text/javascript" src="../securityLib/md5.js"></script>
64 <script language="JavaScript" type="text/javascript" src="../securityLib/ripemd160.js"></script>
65 <script language="JavaScript" type="text/javascript" src="../securityLib/base64.js"></script>
66
67 <script language="JavaScript" type="text/javascript" src="../securityLib/rsapem-1.1.js"></script>
68 <script language="JavaScript" type="text/javascript" src="../securityLib/rsasign-1.2.js"></script>
69 <script language="JavaScript" type="text/javascript" src="../securityLib/asn1hex-1.1.js"></script>
70 <script language="JavaScript" type="text/javascript" src="../securityLib/x509-1.1.js"></script>
71
72 <script type="text/javascript">
73
74 function getAction(){
Jeff Thompsonf3bd3592012-09-29 23:25:30 -070075 var interest = new Interest( new Name(document.getElementById('interest').value));
Jeff Thompson86aea882012-09-29 17:32:48 -070076 interest.scope = 1;
jefff1ba4b72012-09-03 15:20:01 -070077
78 var received = get('127.0.0.1', 9695, encodeToHexInterest(interest));
79
80 output = '<br /> received Content ' + received + '<br />' + contentObjectToHtml(decodeHexContentObject(received));
81 console.log('INTEREST RECEIVED '+ received);
82
83 document.getElementById('result').innerHTML = output;
84 }
85
86 </script>
87
88</head>
89<body >
90
91 <form>
92 Please Enter an Interest:<br />
93 <input id="interest" type="text" name="INTEREST" size="50" value="/ndn/ucla.edu/apps/lwndn-test/hello.txt" />
94 </form>
95
96 <button onclick="getAction()">GET!</button>
97
98 <div >
99 <applet id="JavaSocketBridge" archive="../JavaSocketBridge.jar" code="JavaSocketBridge.class" width="0" height="0">
100 </applet>
101 </div>
102
103 <p id="result"></p>
104
105</body>
106</html>