Skip to content

Instantly share code, notes, and snippets.

@santiago
Created September 30, 2010 14:52
Show Gist options
  • Save santiago/604699 to your computer and use it in GitHub Desktop.
Save santiago/604699 to your computer and use it in GitHub Desktop.
app.post('/admin/couple_fun/games', function(req, res) {
console.log(sys.inspect(req));
res.send("nada");
});
$ curl --data "birthyear=1905&press=%20OK%20" http://localhost:8000/admin/couple_fun/games
{ socket:
{ fd: 8
, type: 'tcp4'
, secure: false
, _readWatcher: { callback: [Function] }
, readable: true
, _writeQueue: []
, _writeQueueEncoding: []
, _writeQueueFD: []
, _writeWatcher: { socket: [Circular], callback: [Function] }
, writable: true
, _writeImpl: [Function]
, _readImpl: [Function]
, _shutdownImpl: [Function]
, remoteAddress: '127.0.0.1'
, remotePort: 51480
, server:
{ config: {}
, settings: [Object]
, redirects: {}
, viewHelpers: {}
, dynamicViewHelpers: {}
, errorHandlers: []
, stack: [Object]
, connections: 1
, watcher: [Object]
, _events: [Object]
, routes: [Object]
, router: [Getter]
, db: [Object]
, sys: [Object]
, populate_games: [Function]
, __usedRouter: true
, type: 'tcp4'
, fd: 7
}
, _outgoing: [ [Object] ]
, __destroyOnDrain: false
, ondrain: [Function]
, _idleTimeout: 120000
, _idleNext:
{ repeat: 120
, _idleNext: [Circular]
, _idlePrev: [Circular]
, callback: [Function]
}
, _idlePrev: [Circular]
, _idleStart: Thu, 30 Sep 2010 14:51:09 GMT
, _events:
{ timeout: [Function]
, error: [Function]
, close: [Function]
}
, ondata: [Function]
, onend: [Function]
, _onOutgoingSent: [Function]
}
, connection: [Circular]
, httpVersion: '1.1'
, headers:
{ 'user-agent': 'curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3'
, host: 'localhost:8000'
, accept: '*/*'
, 'content-length': '29'
, 'content-type': 'application/x-www-form-urlencoded'
}
, url: '/admin/couple_fun/games'
, method: 'POST'
, statusCode: null
, client: [Circular]
, httpVersionMajor: 1
, httpVersionMinor: 1
, upgrade: false
, originalUrl: '/admin/couple_fun/games'
, query: {}
, app: [Circular]
, res: [Circular]
, next: [Function]
, params: []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment