Skip to content

Instantly share code, notes, and snippets.

@joshsmith
Created December 2, 2011 20:58
Show Gist options
  • Save joshsmith/1424813 to your computer and use it in GitHub Desktop.
Save joshsmith/1424813 to your computer and use it in GitHub Desktop.
Log output of form.parse()
{ error: null,
ended: false,
maxFieldsSize: 2097152,
keepExtensions: false,
uploadDir: '/Users/joshsmith/Sites/Node/wadsup/tmp',
encoding: 'utf-8',
headers:
{ host: 'localhost:3000',
connection: 'keep-alive',
'content-length': '226812',
'cache-control': 'max-age=0',
origin: 'http://localhost:3000',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2',
'content-type': 'multipart/form-data; boundary=----WebKitFormBoundaryYql3ZfSbDgLB0YQL',
accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
referer: 'http://localhost:3000/image-upload',
'accept-encoding': 'gzip,deflate,sdch',
'accept-language': 'en-US,en;q=0.8',
'accept-charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
cookie: 'connect.sid=ndi5GJmivrrHjmqShsZzkywA.qEMTmHc5NQ6u7cU%2FoM35LcrOC1yzwAJ4pqUQq0rsejY' },
type: 'multipart',
bytesReceived: 0,
bytesExpected: 226812,
_parser:
{ boundary: <Buffer 0d 0a 2d 2d 2d 2d 2d 2d 57 65 62 4b 69 74 46 6f 72 6d 42 6f 75 6e 64 61 72 79 59 71 6c 33 5a 66 53 62 44 67 4c 42 30 59 51 4c>,
boundaryChars:
{ '10': true,
'13': true,
'45': true,
'48': true,
'51': true,
'66': true,
'68': true,
'70': true,
'75': true,
'76': true,
'81': true,
'83': true,
'87': true,
'89': true,
'90': true,
'97': true,
'98': true,
'100': true,
'101': true,
'102': true,
'103': true,
'105': true,
'108': true,
'109': true,
'110': true,
'111': true,
'113': true,
'114': true,
'116': true,
'117': true,
'121': true },
lookbehind: <Buffer c0 90 90 90 90 90 90 90 90 90 90 90 90 90 33 c0 e9 84 0c 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 ff b5 78 ff ff ff 48 8b 46 0f 48 8b 40 2f 48 8b>,
state: 1,
index: null,
flags: 0,
onPartBegin: [Function],
onHeaderField: [Function],
onHeaderValue: [Function],
onHeaderEnd: [Function],
onHeadersEnd: [Function],
onPartData: [Function],
onPartEnd: [Function],
onEnd: [Function] },
_flushing: 0,
_fieldsSize: 0,
pause: [Function],
resume: [Function],
_events:
{ field: [Function],
file: [Function],
error: [Function],
end: [Function] } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment