I want to scrap amazon all deals page
http://www.amazon.com/gp/goldbox/all-deals/ref=sv_gb_1
So i am using curl php
$request
Based on my quick reseach you might query XHRs made by amazon to request deals.
Such dynamic websites get their data thru Ajax JSON calls. One might try to find out where from the data is dynamically downloaded, (using dev. tools or web sniffer), and then query those urls for data.
See the shot. But if you to query them with php Curl you should use/imitate the http headers of that particular request headers (including cookies):
Based on your new curl request...
The amazon page (its js logic) makes XHR to its server for each product item. XHRs look like this: http://www.amazon.com/xa/dealcontent/v2/GetDealMetadata?nocache=1434445645152
not http://www.amazon.com/gp/goldbox/all-deals/ref=sv_gb_1
which is only the referer.
A request for product item is POST, not GET.
{"requestMetadata":{"marketplaceID":"ATVPDKIKX0DER","sessionID":"175-4567874-0146849","clientID":"goldbox"},"widgetContext":{"pageType":"GoldBox","subPageType":"AllDeals","deviceType":"pc","refRID":"1VFVJBKEYZT3DGWSANXQ","widgetID":"1969939662","slotName":"center-6"},"page":1,"dealsPerPage":8,"itemResponseSize":"NONE","queryProfile":{"featuredOnly":false,"dealTypes":["LIGHTNING_DEAL","BEST_DEAL"],"includedCategories":["283155","599858","154606011"],"excludedExtendedFilters":{"MARKETING_ID":["restrictedcontent"]}}}
See the developer tools picture: