I found a json file that contains all the data of the page. I notice in browser that after downloading the webpage the js sends a POST request to load the json file. If I put the json file link directly in the browser it is a GET request. Is it a better practice to get the webpage and use the relevant cookies to request the json file instead of requesting the json link directly? This way looks more like a normal user?
I also see in the POST and GET requests a XSRF-TOKEN was sent. I suppose this is needed in the request?
Here are POST vs GET requests (stripped out the analytics and 3rd tool cookies). Which items in the headers are best to be included in the requests? Plan to rotate user-agent and IP.
POST
Host:
Connection: keep-alive
Content-Length: 2
Accept: application/json, text/plain, /
X-XSRF-TOKEN:
ADRUM: isAjax:true
User-Agent:
Content-Type: application/json;charset=UTF-8
Origin:
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer:
Accept-Encoding: gzip, deflate, br
Accept-Language: en,en-US
Cookie: JSESSIONID=; XSRF-TOKEN=;
GET
Host:
Connection:
Upgrade-Insecure-Requests: 1
User-Agent:
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Accept-Language: en,en-US
Cookie: JSESSIONI=; XSRF-TOKEN=;