php - Is It possible to find necessary parameters 4 GET/POST requests in jQuery.ajaxSettings?
one text
Let me begin by saying that everything I do is for educational purposes only. It's really interesting and important to understand "how it works". That's all. Nobody, nobody is hurt. So, right know I am learning reverse engineering and I was stooped with understanding of Jquery.ajaxs, 4 example I have a source and I know how to get many Interesting things(go to source and in browser, console puts '> ECProductImpressionTrackingArray'):
Also you can get some Info if u will puts 'jQuery.ajaxSettings'.
Among other things, I found link, Its serves to get product data and now I am interesting, If it possible to find "the right query params" to get data. Maybe I can do it with 'jQuery.ajaxSettings' or should I find it in another place. By the way, why people still use jQuery, is its safety?
Thanks in advance!
P.S. Found smth interesting:
/**
*
* @param {string} action
* @param {Object} config
* @param {?string|?Object} [config.analyticsLabel]
* @param {string} [config.method='POST']
* @param {Object} [config.data]
* @param {?Object} [config.getParameters]
* @param {?Object} [config.headers]
* @param {?Object} [config.timeout]
* @param {Object} [config.navigation]
* @param {number} [config.navigation.page]
*/
BX.ajax.runAction = function(action, config)
{
config = prepareAjaxConfig(config);
var getParameters = prepareAjaxGetParameters(config);
getParameters.action = action;
var url = '/bitrix/services/main/ajax.php?' + BX.ajax.prepareData(getParameters);
return buildAjaxPromiseToRestoreCsrf({
method: config.method,
dataType: 'json',
url: url,
data: config.data,
timeout: config.timeout,
preparePost: config.preparePost,
headers: config.headers,
onrequeststart: config.onrequeststart
});
};
/**
*
* @param {string} component
* @param {string} action
* @param {Object} config
* @param {?string|?Object} [config.analyticsLabel]
* @param {?string} [config.signedParameters]
* @param {string} [config.method='POST']
* @param {string} [config.mode='ajax'] Ajax or class.
* @param {Object} [config.data]
* @param {?Object} [config.getParameters]
* @param {?array} [config.headers]
* @param {?number} [config.timeout]
* @param {Object} [config.navigation]
*/
BX.ajax.runComponentAction = function (component, action, config)
{
config = prepareAjaxConfig(config);
config.mode = config.mode || 'ajax';
var getParameters = prepareAjaxGetParameters(config);
getParameters.c = component;
getParameters.action = action;
var url = '/bitrix/services/main/ajax.php?' + BX.ajax.prepareData(getParameters);
return buildAjaxPromiseToRestoreCsrf({
method: config.method,
dataType: 'json',
url: url,
data: config.data,
timeout: config.timeout,
preparePost: config.preparePost,
headers: config.headers,
onrequeststart: (config.onrequeststart ? config.onrequeststart : null)
});
};
Source