-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusage.html
More file actions
22 lines (20 loc) · 788 Bytes
/
usage.html
File metadata and controls
22 lines (20 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!doctype html>
<html>
<head>
<title>JSONP Server Usage</title>
<style>
</style>
</head>
<body>
<h1>JSONP Server Usage</h1>
<p>This JSONP server takes a get request at the base URL,
jsonp-server.heroku.com/json with two name/value pairs of url and
callback. The values must be escaped using a function such as
javascript's encodeURIComponent().</p>
<p>The server replies with javascript which invokes the specified
callback function with four arguments in the form
<span style="font-family:monospace;"><i>callback</i>({<i>options</i>},
"<i>status code</i>", {<i>headers</i>}, "<i>content</i>");</span>.<br>
</p>
</body>
</html>