You can post a json file with curl
like so:
curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION
so for example:
function TinyStore (name) { | |
this.enabled = (function(){ | |
try { | |
return 'localStorage' in window && window['localStorage'] !== null; | |
} catch (e) { | |
return false; | |
} | |
})(); | |
this.session = {}; |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Leafstrap</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css"> | |
<style> | |
#map { | |
height: 400px; |
var obj = { | |
a: { | |
b: { | |
c: 'yay' | |
} | |
} | |
}; | |
var path = ['a','b','c']; |
<body style="background-attachment: fixed;" vlink="red" alink="#ff0000" background="http://www.alfran.es/images/sowa.jpg" bgcolor="black" lang="EN-US" link="#646464"><p align="center"> </p> | |
</object> | |
<html> | |
<head> | |
<SCRIPT language=JavaScript> | |
<!-- | |
function clickhandler() { |
<tailcoat-modal> | |
<tailcoat-modal-btn>Kill All Humans</tailcoat-modal-btn> | |
<tailcoat-modal-content> | |
<h2>Do you really want to kill all humans?</h2> | |
<button class="btn primary" ng-click="killAllHumans()">Yes</button> | |
<button class="btn cancel" ng-click="killAllHumans()">Definitely</button> | |
</tailcoat-modal-content> | |
</tailcoat-modal> |