Answer the question
In order to leave comments, you need to log in
Why is a post request not sent via ajax in phantomJS?
What could be the problem?
var webPage = require('webpage');
var page = webPage.create();
page.includeJs('http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js', function() {
console.log('post:');
$jQuery.post("http://httbpin.org/post", function(data) {
console.log(data);
});
});
Answer the question
In order to leave comments, you need to log in
the issue is resolved, we managed to send a post using this method, after running phantomjs with
--web security=false
$.post("http://httbpin.org/post", function(data) {
console.log(data);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question