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.
This dosent seem to be a bug of node.js I made a request to fb.com in curl and I got the same redirect.
It probably makes that decision based on the user agent... maybe you can use the user agent of a browser :D