Skip to content

Instantly share code, notes, and snippets.

/**
* Submits a POST request to the given URL with the given XML as an attachment.
*
* @param url
* @param xmlContent
* @return
* @throw IOException
* */
public ContentExchange postXML(String url, String xmlContent) throws IOException {
HttpClient client = getClient();
server {
listen 80;
server_name www.compassionpit.org;
rewrite ^/(.*) http://www.compassionpit.com/$1 permanent;
}
server {
listen 80; # your server's public IP address
server_name www.compassionpit.com;
zachary@Zachary-Burts-MacBook-Air-2 ~/Code/dnode/examples/web-express[master*]$ npm ls
/Applications/MAMP/htdocs/dnode/examples/web-express
└─┬ [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
$("button#login").click(function() {
DNode.connect(function (remote) {
remote.login($("#registerEmail").val(), $("#registerPassword").val(), function(successful_login) {
if(successful_login) {
console.log('login successful!');
}
else {
console.log('login failed.');
}
});