Im writing an http client to read from facebook using node.js and using the following code:
var http = require(\'http\'); var options = { host: \'www.fb.com\'
var request_options = { host: 'www.fb.com', headers: {'user-agent': 'Mozilla/5.0'}, path: '/' };
Setting the request option this way should work.