I try to download and parse some big xml files. The files are from some affiliates sites that don't have a proper API right now. I use the request module for nodejs but I allways get the same error.
Error: read ECONNRESET
at exports._errnoException (util.js:746:11)
at TCP.onread (net.js:559:26)
If I load the same url in the browser or I user curl from the command line I get the results.
request('[my-url].xml', function(err, response, body){
// I get the error here in err
});
Any ideea how can I fix this? Thank you!