Answer the question
In order to leave comments, you need to log in
How to get data from ajax request?
Good afternoon. I'm trying to pull data from this address. Issues a TemporaryRedirect . Although in the browser everything looks fine. What's wrong? Tell me, please)
Attempt number one
var needle = require('needle');
var URL = 'https://vprognoze.ru/engine/modules/fc_resultat_ajax.php?ajax=1';
needle.get(URL, function(err, res){
if (err) throw err;
console.log(res.body) //TemporaryRedirect
});
var request = require('ajax-request');
var URL = 'https://vprognoze.ru/engine/modules/fc_resultat_ajax.php?ajax=1';
request(URL, function(err, res, body) {
console.log(body) //TemporaryRedirect
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question