Is it possible to send a curl request in jQuery or javascript?
Something like this:
curl \\
-H \'Authorization: Bearer 6Q************\' \\
\'https:/
Yes, use getJSONP. It's the only way to make cross domain/server async calls. (*Or it will be in the near future). Something like
$.getJSON('your-api-url/validate.php?'+$(this).serialize+'callback=?', function(data){
if(data)console.log(data);
});
The callback parameter will be filled in automatically by the browser, so don't worry.
On the server side ('validate.php') you would have something like this
'failed'));
?>