Permalink
Browse files

V 1.0 AritmeticExpress

  • Loading branch information...
1 parent 29ce7e1 commit c6611d666f8eeba21d9ee6cf582101b401708236 xFontroSF committed Oct 5, 2012
Showing with 6 additions and 7 deletions.
  1. +1 −1 README.md
  2. +5 −5 client.js
  3. +0 −1 server.js
View
@@ -1 +1 @@
-Basic aritmetic operations server created with node.js
+Basic aritmetic operations server created with node.js & Express.
View
@@ -1,15 +1,15 @@
var http = require("http");
var req_options = {
- host: '192.168.7.13',
- //host: 'localhost',
+ //host: '192.168.7.13',
+ host: 'localhost',
port: '8080',
method: 'POST',
//path: '/sumar?op1=2&op2=4', //Exemple per a GET.
- path: 'http://aritmeticops-nodetestingsf.rhcloud.com/dividir', //Exemple per a POST.
- //path: '/sumar',
+ //path: 'http://aritmeticops-nodetestingsf.rhcloud.com/dividir', //Exemple per a POST.
+ path: '/sumar',
headers: {
- Host: "aritmeticops-nodetestingsf.rhcloud.com"
+ //Host: "aritmeticops-nodetestingsf.rhcloud.com"
}
};
View
@@ -60,6 +60,5 @@ app.all("/*", function (request, response){
});
app.listen(port,ipaddr);
-
console.log("Server has started at: "+ipaddr+":"+port);

0 comments on commit c6611d6

Please sign in to comment.