Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var http = require('http');
- http.createServer(function (request, response) {
- if (request.method === 'POST') {
- });
- var data = '';
- request.addListener('data', function(chunk) { data += chunk; });
- request.addListener('end', function() {
- var stockQuery = eval("(" + data + ")");
- getStockPrice(stockQuery.symbol);
- // whatever else you do here....
- });
Add Comment
Please, Sign In to add comment