There is an AJAX request:
function getCourierInfo(courierId) { jQuery.ajax({ type: "GET", url:'http://domain.com/AppClient_1.0_domain/admin/courierchange.php?courier_id='+courierId, headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, complete: function (courierDetails) { jQuery.ajax({ type: "POST", url: "http://mydomain.com.ua/wp-content/themes/mytheme/Controllers/CourierController.php", data: courierDetails }) } }) } I make a request to the application server, and then I want to send the results of this request to the server’s administrative panel (my site, to put it simply).
How can I accept, process and return this data?
jQuery.ajax({makeconsole.log(courierDetails);and in the browser console, see the data structure. - Visman