Skip to content

Instantly share code, notes, and snippets.

@rodrigok
Created May 17, 2014 00:24
Show Gist options
  • Select an option

  • Save rodrigok/d4fa31d134cfb31dae28 to your computer and use it in GitHub Desktop.

Select an option

Save rodrigok/d4fa31d134cfb31dae28 to your computer and use it in GitHub Desktop.
Request QualOperadora.net
var options = {
url: 'http://www.qualoperadora.net/',
method: 'POST',
headers: {
'cookie': 'PHPSESSID=pgflhdqa2ltmirougo2cjf79f0; _jsuid=3103488192; USID=3362150133-1399133560.37; _first_pageview=1; heatmaps_g2g_100536567=no; p_cachedDomain=www.qualoperadora.net; p_cachedDeals=%5B%5D; __utma=7597106.1768311926.1399133561.1399147733.1399992202.3; __utmb=7597106.2.10.1399992202; __utmc=7597106; __utmz=7597106.1399133561.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _eventqueue=%7B%22heatmap%22%3A%5B%5D%2C%22events%22%3A%5B%5D%7D; __utma=112029058.1497549882.1399133567.1399147736.1399992206.3; __utmb=112029058.2.10.1399992206; __utmc=112029058; __utmz=112029058.1399133567.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)',
'user-agent': req.get('user-agent'),
'accept-language': req.get('accept-language')
},
form:{
ref2115: "http://www.qualoperadora.net/",
telefone: req.params.phone
}
};
request(options, function(error, response, body) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment