I am trying to download a page which has infinite scroll when obtaining the resutls. I have found the url of the ajax source. When i put it on a browser it works fine and it returns the json format data. But when i try to download the page through wget, i get Access denied message. Do you have any idea why is this happening?
the command i am using is:
wget --cookies=on --load-cookies=cookies.txt --keep-session-cookies --user-agent=Firefox \
"https://www.somesite.com/ajax/pagelet/generic.php/pagination?data={"collection_token":"...","cursor":"...","tab_key":"....","profile_id":"...","overview":"...","ftid":"null","sk":"..."}&__user=...&__a=1"