Skip to content

Commit

Permalink
Merge with conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
xfontro committed Oct 2, 2012
2 parents ba5b566 + 619ffab commit 792334c
Show file tree
Hide file tree
Showing 307 changed files with 19,597 additions and 73 deletions.
8 changes: 5 additions & 3 deletions client.js
Expand Up @@ -2,11 +2,12 @@ var http = require("http");

var req_options = {
host: '192.168.7.13',
//host: '127.0.0.1',
//host: 'localhost',
port: '8080',
method: 'POST',
//path: '/sumar?op1=2&op2=4', //Exemple per a GET.
path: 'http://aritmeticops-nodetestingsf.rhcloud.com/sumar', //Exemple per a POST.
path: 'http://aritmeticops-nodetestingsf.rhcloud.com/dividir', //Exemple per a POST.
//path: '/dividir',
headers: {
Host: "aritmeticops-nodetestingsf.rhcloud.com"
}
Expand All @@ -28,12 +29,12 @@ if(req_options.method === 'POST'){

var req = http.request(req_options, function(response){
var res_data='';

response.on('data', function(chunk){
res_data +=chunk;
});
response.on('end', function(){
console.log("El resultat es: " + JSON.parse(res_data).resultat);
console.log("JSON: "+res_data);
});
});

Expand All @@ -43,6 +44,7 @@ if(req_options.method === 'POST'){
});

req.write(data);
//console.log("The data i pass: "+data);
req.end();

} else if(req_options.method === 'GET'){
Expand Down
15 changes: 15 additions & 0 deletions node_modules/.bin/express

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions node_modules/.bin/express.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions node_modules/express/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions node_modules/express/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 792334c

Please sign in to comment.