- Регистрация
- 16.09.2017
- Сообщения
- 446
- Благодарностей
- 170
- Баллы
- 43
Пытаюсь получить данные этого сайта https://www.g2g.com/searchAllGame/index?service=1
На странице категории у каждой категории количество офферов, офферы подгружаются ajax-post запросом.
Подставил все что только можно в заголовки, параметры передаю правильно.
Заголовки Chrome:
передаваемые параметры:
передаю их правильно, перепробовал все варианты.
Общий код:
Нужна ваша помощь, идей больше нет.
На странице категории у каждой категории количество офферов, офферы подгружаются ajax-post запросом.
Подставил все что только можно в заголовки, параметры передаю правильно.
Заголовки Chrome:
передаваемые параметры:
передаю их правильно, перепробовал все варианты.
Общий код:
PHP:
$url = 'https://www.g2g.com/searchAllGame/CountListing';
$data = '0%5Bgame%5D%3D1401%260%5Bservice%5D%3D1%261%5Bgame%5D%3D1496%261%5Bservice%5D%3D1%262%5Bgame%5D%3D1660%262%5Bservice%5D%3D1%263%5Bgame%5D%3D1736%263%5Bservice%5D%3D1%264%5Bgame%5D%3D1808%264%5Bservice%5D%3D1%265%5Bgame%5D%3D1809%265%5Bservice%5D%3D1%266%5Bgame%5D%3D1958%266%5Bservice%5D%3D1%267%5Bgame%5D%3D2299%267%5Bservice%5D%3D1%268%5Bgame%5D%3D2522%268%5Bservice%5D%3D1%269%5Bgame%5D%3D2796%269%5Bservice%5D%3D1%2610%5Bgame%5D%3D3083%2610%5Bservice%5D%3D1%2611%5Bgame%5D%3D3155%2611%5Bservice%5D%3D1%2612%5Bgame%5D%3D3156%2612%5Bservice%5D%3D1%2613%5Bgame%5D%3D3160%2613%5Bservice%5D%3D1%2614%5Bgame%5D%3D3259%2614%5Bservice%5D%3D1%2615%5Bgame%5D%3D3343%2615%5Bservice%5D%3D1%2616%5Bgame%5D%3D3406%2616%5Bservice%5D%3D1%2617%5Bgame%5D%3D3481%2617%5Bservice%5D%3D1%2618%5Bgame%5D%3D3853%2618%5Bservice%5D%3D1%2619%5Bgame%5D%3D4088%2619%5Bservice%5D%3D1%2620%5Bgame%5D%3D4204%2620%5Bservice%5D%3D1%2621%5Bgame%5D%3D4357%2621%5Bservice%5D%3D1%2622%5Bgame%5D%3D4528%2622%5Bservice%5D%3D1%2623%5Bgame%5D%3D4772%2623%5Bservice%5D%3D1%2624%5Bgame%5D%3D4865%2624%5Bservice%5D%3D1%2625%5Bgame%5D%3D4870%2625%5Bservice%5D%3D1%2626%5Bgame%5D%3D4875%2626%5Bservice%5D%3D1%2627%5Bgame%5D%3D4878%2627%5Bservice%5D%3D1%2628%5Bgame%5D%3D4881%2628%5Bservice%5D%3D1%2629%5Bgame%5D%3D4883%2629%5Bservice%5D%3D1%2630%5Bgame%5D%3D4899%2630%5Bservice%5D%3D1%2631%5Bgame%5D%3D4905%2631%5Bservice%5D%3D1%2632%5Bgame%5D%3D4910%2632%5Bservice%5D%3D1%2633%5Bgame%5D%3D4915%2633%5Bservice%5D%3D1%2634%5Bgame%5D%3D5038%2634%5Bservice%5D%3D1%2635%5Bgame%5D%3D5166%2635%5Bservice%5D%3D1%2636%5Bgame%5D%3D5670%2636%5Bservice%5D%3D1%2637%5Bgame%5D%3D6063%2637%5Bservice%5D%3D1%2638%5Bgame%5D%3D7393%2638%5Bservice%5D%3D1%2639%5Bgame%5D%3D7403%2639%5Bservice%5D%3D1%2640%5Bgame%5D%3D8561%2640%5Bservice%5D%3D1%2641%5Bgame%5D%3D8630%2641%5Bservice%5D%3D1%2642%5Bgame%5D%3D12467%2642%5Bservice%5D%3D1%2643%5Bgame%5D%3D14196%2643%5Bservice%5D%3D1%2644%5Bgame%5D%3D14199%2644%5Bservice%5D%3D1%2645%5Bgame%5D%3D14520%2645%5Bservice%5D%3D1%2646%5Bgame%5D%3D14756%2646%5Bservice%5D%3D1%2647%5Bgame%5D%3D16406%2647%5Bservice%5D%3D1%2648%5Bgame%5D%3D16664%2648%5Bservice%5D%3D1%2649%5Bgame%5D%3D16824%2649%5Bservice%5D%3D1%2650%5Bgame%5D%3D17303%2650%5Bservice%5D%3D1%2651%5Bgame%5D%3D17435%2651%5Bservice%5D%3D1%2652%5Bgame%5D%3D17699%2652%5Bservice%5D%3D1%2653%5Bgame%5D%3D17900%2653%5Bservice%5D%3D1%2654%5Bgame%5D%3D17901%2654%5Bservice%5D%3D1%2655%5Bgame%5D%3D18044%2655%5Bservice%5D%3D1%2656%5Bgame%5D%3D18070%2656%5Bservice%5D%3D1%2657%5Bgame%5D%3D18120%2657%5Bservice%5D%3D1%2658%5Bgame%5D%3D18140%2658%5Bservice%5D%3D1%2659%5Bgame%5D%3D18230%2659%5Bservice%5D%3D1%2660%5Bgame%5D%3D18247%2660%5Bservice%5D%3D1%2661%5Bgame%5D%3D18363%2661%5Bservice%5D%3D1%2662%5Bgame%5D%3D18383%2662%5Bservice%5D%3D1%2663%5Bgame%5D%3D18396%2663%5Bservice%5D%3D1%2664%5Bgame%5D%3D18629%2664%5Bservice%5D%3D1%2665%5Bgame%5D%3D18640%2665%5Bservice%5D%3D1%2666%5Bgame%5D%3D18656%2666%5Bservice%5D%3D1%2667%5Bgame%5D%3D18711%2667%5Bservice%5D%3D1%2668%5Bgame%5D%3D18721%2668%5Bservice%5D%3D1%2669%5Bgame%5D%3D18727%2669%5Bservice%5D%3D1%2670%5Bgame%5D%3D18731%2670%5Bservice%5D%3D1%2671%5Bgame%5D%3D18887%2671%5Bservice%5D%3D1%2672%5Bgame%5D%3D18891%2672%5Bservice%5D%3D1%2673%5Bgame%5D%3D18896%2673%5Bservice%5D%3D1%2674%5Bgame%5D%3D18900%2674%5Bservice%5D%3D1%2675%5Bgame%5D%3D18958%2675%5Bservice%5D%3D1%2676%5Bgame%5D%3D18961%2676%5Bservice%5D%3D1%2677%5Bgame%5D%3D19390%2677%5Bservice%5D%3D1%2678%5Bgame%5D%3D19391%2678%5Bservice%5D%3D1%2679%5Bgame%5D%3D19426%2679%5Bservice%5D%3D1%2680%5Bgame%5D%3D19656%2680%5Bservice%5D%3D1%2681%5Bgame%5D%3D19657%2681%5Bservice%5D%3D1%2682%5Bgame%5D%3D19746%2682%5Bservice%5D%3D1%2683%5Bgame%5D%3D19747%2683%5Bservice%5D%3D1%2684%5Bgame%5D%3D19766%2684%5Bservice%5D%3D1%2685%5Bgame%5D%3D19774%2685%5Bservice%5D%3D1%2686%5Bgame%5D%3D19796%2686%5Bservice%5D%3D1%2687%5Bgame%5D%3D19797%2687%5Bservice%5D%3D1%2688%5Bgame%5D%3D19801%2688%5Bservice%5D%3D1%2689%5Bgame%5D%3D19802%2689%5Bservice%5D%3D1%2690%5Bgame%5D%3D19807%2690%5Bservice%5D%3D1%2691%5Bgame%5D%3D19810%2691%5Bservice%5D%3D1%2692%5Bgame%5D%3D19813%2692%5Bservice%5D%3D1%2693%5Bgame%5D%3D19814%2693%5Bservice%5D%3D1%2694%5Bgame%5D%3D19849%2694%5Bservice%5D%3D1%2695%5Bgame%5D%3D19915%2695%5Bservice%5D%3D1%2696%5Bgame%5D%3D19934%2696%5Bservice%5D%3D1%2697%5Bgame%5D%3D19940%2697%5Bservice%5D%3D1%2698%5Bgame%5D%3D20028%2698%5Bservice%5D%3D1%2699%5Bgame%5D%3D20086%2699%5Bservice%5D%3D1%26100%5Bgame%5D%3D20087%26100%5Bservice%5D%3D1%26101%5Bgame%5D%3D20220%26101%5Bservice%5D%3D1%26102%5Bgame%5D%3D20222%26102%5Bservice%5D%3D1%26103%5Bgame%5D%3D20225%26103%5Bservice%5D%3D1%26104%5Bgame%5D%3D20229%26104%5Bservice%5D%3D1%26105%5Bgame%5D%3D20250%26105%5Bservice%5D%3D1%26106%5Bgame%5D%3D20266%26106%5Bservice%5D%3D1%26107%5Bgame%5D%3D20276%26107%5Bservice%5D%3D1%26108%5Bgame%5D%3D20279%26108%5Bservice%5D%3D1%26109%5Bgame%5D%3D20282%26109%5Bservice%5D%3D1%26110%5Bgame%5D%3D20285%26110%5Bservice%5D%3D1%26111%5Bgame%5D%3D20308%26111%5Bservice%5D%3D1%26112%5Bgame%5D%3D20309%26112%5Bservice%5D%3D1%26113%5Bgame%5D%3D20354%26113%5Bservice%5D%3D1%26114%5Bgame%5D%3D20376%26114%5Bservice%5D%3D1%26115%5Bgame%5D%3D20520%26115%5Bservice%5D%3D1%26116%5Bgame%5D%3D20532%26116%5Bservice%5D%3D1%26117%5Bgame%5D%3D20657%26117%5Bservice%5D%3D1%26118%5Bgame%5D%3D20842%26118%5Bservice%5D%3D1%26119%5Bgame%5D%3D21648%26119%5Bservice%5D%3D1%26120%5Bgame%5D%3D21695%26120%5Bservice%5D%3D1%26121%5Bgame%5D%3D21894%26121%5Bservice%5D%3D1%26122%5Bgame%5D%3D22211%26122%5Bservice%5D%3D1%26123%5Bgame%5D%3D22362%26123%5Bservice%5D%3D1%26124%5Bgame%5D%3D22473%26124%5Bservice%5D%3D1%26125%5Bgame%5D%3D22487%26125%5Bservice%5D%3D1%26126%5Bgame%5D%3D22549%26126%5Bservice%5D%3D1%26127%5Bgame%5D%3D22595%26127%5Bservice%5D%3D1%26128%5Bgame%5D%3D22600%26128%5Bservice%5D%3D1%26129%5Bgame%5D%3D22604%26129%5Bservice%5D%3D1%26130%5Bgame%5D%3D22609%26130%5Bservice%5D%3D1%26131%5Bgame%5D%3D22614%26131%5Bservice%5D%3D1%26132%5Bgame%5D%3D22652%26132%5Bservice%5D%3D1%26133%5Bgame%5D%3D22677%26133%5Bservice%5D%3D1%26134%5Bgame%5D%3D22696%26134%5Bservice%5D%3D1%26135%5Bgame%5D%3D22700%26135%5Bservice%5D%3D1%26136%5Bgame%5D%3D22781%26136%5Bservice%5D%3D1%26137%5Bgame%5D%3D22793%26137%5Bservice%5D%3D1%26138%5Bgame%5D%3D22925%26138%5Bservice%5D%3D1%26139%5Bgame%5D%3D22932%26139%5Bservice%5D%3D1%26140%5Bgame%5D%3D22948%26140%5Bservice%5D%3D1%26141%5Bgame%5D%3D22957%26141%5Bservice%5D%3D1%26142%5Bgame%5D%3D23027%26142%5Bservice%5D%3D1%26143%5Bgame%5D%3D23041%26143%5Bservice%5D%3D1%26144%5Bgame%5D%3D23181%26144%5Bservice%5D%3D1%26145%5Bgame%5D%3D23195%26145%5Bservice%5D%3D1%26146%5Bgame%5D%3D23279%26146%5Bservice%5D%3D1%26147%5Bgame%5D%3D23319%26147%5Bservice%5D%3D1%26148%5Bgame%5D%3D23320%26148%5Bservice%5D%3D1%26149%5Bgame%5D%3D23342%26149%5Bservice%5D%3D1%26150%5Bgame%5D%3D23353%26150%5Bservice%5D%3D1%26151%5Bgame%5D%3D23410%26151%5Bservice%5D%3D1%26152%5Bgame%5D%3D23446%26152%5Bservice%5D%3D1%26153%5Bgame%5D%3D23490%26153%5Bservice%5D%3D1%26154%5Bgame%5D%3D23495%26154%5Bservice%5D%3D1%26155%5Bgame%5D%3D23536%26155%5Bservice%5D%3D1%26156%5Bgame%5D%3D23542%26156%5Bservice%5D%3D1%26157%5Bgame%5D%3D23559%26157%5Bservice%5D%3D1%26158%5Bgame%5D%3D23564%26158%5Bservice%5D%3D1%26159%5Bgame%5D%3D23570%26159%5Bservice%5D%3D1%26160%5Bgame%5D%3D23600%26160%5Bservice%5D%3D1%26161%5Bgame%5D%3D23610%26161%5Bservice%5D%3D1%26162%5Bgame%5D%3D23618%26162%5Bservice%5D%3D1%26163%5Bgame%5D%3D23624%26163%5Bservice%5D%3D1%26164%5Bgame%5D%3D23656%26164%5Bservice%5D%3D1%26165%5Bgame%5D%3D23669%26165%5Bservice%5D%3D1%26166%5Bgame%5D%3D23674%26166%5Bservice%5D%3D1%26167%5Bgame%5D%3D23746%26167%5Bservice%5D%3D1%26168%5Bgame%5D%3D23751%26168%5Bservice%5D%3D1%26169%5Bgame%5D%3D23784%26169%5Bservice%5D%3D1%26170%5Bgame%5D%3D23788%26170%5Bservice%5D%3D1%26171%5Bgame%5D%3D23828%26171%5Bservice%5D%3D1%26172%5Bgame%5D%3D23829%26172%5Bservice%5D%3D1%26173%5Bgame%5D%3D23837%26173%5Bservice%5D%3D1%26174%5Bgame%5D%3D23873%26174%5Bservice%5D%3D1%26175%5Bgame%5D%3D23884%26175%5Bservice%5D%3D1%26176%5Bgame%5D%3D23920%26176%5Bservice%5D%3D1%26177%5Bgame%5D%3D23926%26177%5Bservice%5D%3D1%26178%5Bgame%5D%3D23933%26178%5Bservice%5D%3D1%26179%5Bgame%5D%3D23937%26179%5Bservice%5D%3D1%26180%5Bgame%5D%3D23950%26180%5Bservice%5D%3D1%26181%5Bgame%5D%3D23987%26181%5Bservice%5D%3D1%26182%5Bgame%5D%3D24046%26182%5Bservice%5D%3D1%26183%5Bgame%5D%3D24050%26183%5Bservice%5D%3D1%26184%5Bgame%5D%3D24068%26184%5Bservice%5D%3D1%26185%5Bgame%5D%3D24092%26185%5Bservice%5D%3D1%26186%5Bgame%5D%3D24104%26186%5Bservice%5D%3D1%26187%5Bgame%5D%3D24109%26187%5Bservice%5D%3D1%26188%5Bgame%5D%3D24136%26188%5Bservice%5D%3D1%26189%5Bgame%5D%3D24137%26189%5Bservice%5D%3D1%26190%5Bgame%5D%3D24221%26190%5Bservice%5D%3D1%26191%5Bgame%5D%3D24222%26191%5Bservice%5D%3D1%26192%5Bgame%5D%3D24223%26192%5Bservice%5D%3D1%26193%5Bgame%5D%3D24224%26193%5Bservice%5D%3D1%26194%5Bgame%5D%3D24241%26194%5Bservice%5D%3D1%26195%5Bgame%5D%3D24259%26195%5Bservice%5D%3D1%26196%5Bgame%5D%3D24274%26196%5Bservice%5D%3D1%26197%5Bgame%5D%3D24275%26197%5Bservice%5D%3D1%26198%5Bgame%5D%3D24299%26198%5Bservice%5D%3D1%26199%5Bgame%5D%3D24300%26199%5Bservice%5D%3D1%26200%5Bgame%5D%3D24301%26200%5Bservice%5D%3D1%26201%5Bgame%5D%3D24309%26201%5Bservice%5D%3D1%26202%5Bgame%5D%3D24341%26202%5Bservice%5D%3D1%26203%5Bgame%5D%3D24398%26203%5Bservice%5D%3D1%26204%5Bgame%5D%3D24434%26204%5Bservice%5D%3D1%26205%5Bgame%5D%3D24450%26205%5Bservice%5D%3D1%26206%5Bgame%5D%3D24559%26206%5Bservice%5D%3D1%26207%5Bgame%5D%3D24640%26207%5Bservice%5D%3D1%26208%5Bgame%5D%3D24791%26208%5Bservice%5D%3D1%26209%5Bgame%5D%3D24833%26209%5Bservice%5D%3D1%26210%5Bgame%5D%3D24881%26210%5Bservice%5D%3D1%26211%5Bgame%5D%3D24938%26211%5Bservice%5D%3D1%26212%5Bgame%5D%3D24971%26212%5Bservice%5D%3D1%26213%5Bgame%5D%3D25002%26213%5Bservice%5D%3D1%26214%5Bgame%5D%3D25033%26214%5Bservice%5D%3D1%26215%5Bgame%5D%3D25083%26215%5Bservice%5D%3D1%26216%5Bgame%5D%3D25147%26216%5Bservice%5D%3D1%26217%5Bgame%5D%3D25215%26217%5Bservice%5D%3D1%26218%5Bgame%5D%3D25261%26218%5Bservice%5D%3D1%26219%5Bgame%5D%3D25316%26219%5Bservice%5D%3D1%26220%5Bgame%5D%3D25396%26220%5Bservice%5D%3D1%26221%5Bgame%5D%3D25408%26221%5Bservice%5D%3D1%26222%5Bgame%5D%3D25421%26222%5Bservice%5D%3D1%26223%5Bgame%5D%3D25422%26223%5Bservice%5D%3D1%26224%5Bgame%5D%3D25467%26224%5Bservice%5D%3D1%26225%5Bgame%5D%3D25468%26225%5Bservice%5D%3D1%26226%5Bgame%5D%3D25483%26226%5Bservice%5D%3D1%26227%5Bgame%5D%3D25485%26227%5Bservice%5D%3D1%26228%5Bgame%5D%3D25514%26228%5Bservice%5D%3D1%26229%5Bgame%5D%3D25535%26229%5Bservice%5D%3D1%26230%5Bgame%5D%3D25559%26230%5Bservice%5D%3D1%26231%5Bgame%5D%3D25560%26231%5Bservice%5D%3D1%26232%5Bgame%5D%3D25576%26232%5Bservice%5D%3D1%26233%5Bgame%5D%3D25589%26233%5Bservice%5D%3D1%26234%5Bgame%5D%3D25598%26234%5Bservice%5D%3D1%26235%5Bgame%5D%3D25674%26235%5Bservice%5D%3D1%26236%5Bgame%5D%3D25736%26236%5Bservice%5D%3D1%26237%5Bgame%5D%3D25794%26237%5Bservice%5D%3D1%26238%5Bgame%5D%3D25859%26238%5Bservice%5D%3D1%26239%5Bgame%5D%3D25861%26239%5Bservice%5D%3D1%26240%5Bgame%5D%3D25874%26240%5Bservice%5D%3D1%26241%5Bgame%5D%3D25999%26241%5Bservice%5D%3D1%26242%5Bgame%5D%3D26078%26242%5Bservice%5D%3D1%26243%5Bgame%5D%3D26084%26243%5Bservice%5D%3D1%26244%5Bgame%5D%3D26105%26244%5Bservice%5D%3D1%26245%5Bgame%5D%3D26186%26245%5Bservice%5D%3D1%26246%5Bgame%5D%3D26188%26246%5Bservice%5D%3D1%26247%5Bgame%5D%3D26231%26247%5Bservice%5D%3D1%26248%5Bgame%5D%3D26249%26248%5Bservice%5D%3D1%26249%5Bgame%5D%3D26253%26249%5Bservice%5D%3D1%26250%5Bgame%5D%3D26310%26250%5Bservice%5D%3D1%26251%5Bgame%5D%3D26315%26251%5Bservice%5D%3D1%26252%5Bgame%5D%3D26316%26252%5Bservice%5D%3D1%26253%5Bgame%5D%3D26323%26253%5Bservice%5D%3D1%26254%5Bgame%5D%3D26365%26254%5Bservice%5D%3D1%26255%5Bgame%5D%3D26391%26255%5Bservice%5D%3D1%26256%5Bgame%5D%3D26399%26256%5Bservice%5D%3D1%26257%5Bgame%5D%3D26429%26257%5Bservice%5D%3D1%26258%5Bgame%5D%3D26523%26258%5Bservice%5D%3D1%26259%5Bgame%5D%3D26660%26259%5Bservice%5D%3D1%26260%5Bgame%5D%3D26704%26260%5Bservice%5D%3D1%26261%5Bgame%5D%3D26742%26261%5Bservice%5D%3D1%26262%5Bgame%5D%3D26805%26262%5Bservice%5D%3D1%26263%5Bgame%5D%3D26876%26263%5Bservice%5D%3D1%26264%5Bgame%5D%3D26891%26264%5Bservice%5D%3D1%26265%5Bgame%5D%3D26897%26265%5Bservice%5D%3D1%26266%5Bgame%5D%3D26972%26266%5Bservice%5D%3D1%26267%5Bgame%5D%3D26996%26267%5Bservice%5D%3D1%26268%5Bgame%5D%3D27002%26268%5Bservice%5D%3D1%26269%5Bgame%5D%3D27043%26269%5Bservice%5D%3D1%26270%5Bgame%5D%3D27064%26270%5Bservice%5D%3D1%26271%5Bgame%5D%3D27073%26271%5Bservice%5D%3D1%26272%5Bgame%5D%3D27092%26272%5Bservice%5D%3D1%26273%5Bgame%5D%3D27167%26273%5Bservice%5D%3D1%26274%5Bgame%5D%3D27188%26274%5Bservice%5D%3D1%26275%5Bgame%5D%3D27194%26275%5Bservice%5D%3D1%26276%5Bgame%5D%3D27249%26276%5Bservice%5D%3D1%26277%5Bgame%5D%3D27266%26277%5Bservice%5D%3D1%26278%5Bgame%5D%3D27272%26278%5Bservice%5D%3D1%26279%5Bgame%5D%3D27325%26279%5Bservice%5D%3D1%26280%5Bgame%5D%3D27339%26280%5Bservice%5D%3D1%26281%5Bgame%5D%3D27349%26281%5Bservice%5D%3D1%26282%5Bgame%5D%3D27429%26282%5Bservice%5D%3D1%26283%5Bgame%5D%3D27517%26283%5Bservice%5D%3D1%26284%5Bgame%5D%3D27596%26284%5Bservice%5D%3D1%26285%5Bgame%5D%3D27644%26285%5Bservice%5D%3D1%26286%5Bgame%5D%3D27650%26286%5Bservice%5D%3D1%26287%5Bgame%5D%3D27655%26287%5Bservice%5D%3D1%26288%5Bgame%5D%3D27659%26288%5Bservice%5D%3D1%26289%5Bgame%5D%3D27679%26289%5Bservice%5D%3D1%26290%5Bgame%5D%3D27815%26290%5Bservice%5D%3D1%26291%5Bgame%5D%3D27816%26291%5Bservice%5D%3D1%26292%5Bgame%5D%3D27839%26292%5Bservice%5D%3D1%26293%5Bgame%5D%3D27945%26293%5Bservice%5D%3D1%26294%5Bgame%5D%3D27956%26294%5Bservice%5D%3D1%26295%5Bgame%5D%3D27965%26295%5Bservice%5D%3D1%26296%5Bgame%5D%3D28132%26296%5Bservice%5D%3D1%26297%5Bgame%5D%3D28250%26297%5Bservice%5D%3D1%26298%5Bgame%5D%3D28266%26298%5Bservice%5D%3D1%26299%5Bgame%5D%3D28294%26299%5Bservice%5D%3D1%26300%5Bgame%5D%3D28361%26300%5Bservice%5D%3D1%26301%5Bgame%5D%3D28495%26301%5Bservice%5D%3D1%26302%5Bgame%5D%3D28514%26302%5Bservice%5D%3D1%26303%5Bgame%5D%3D28559%26303%5Bservice%5D%3D1%26304%5Bgame%5D%3D28665%26304%5Bservice%5D%3D1%26305%5Bgame%5D%3D28668%26305%5Bservice%5D%3D1%26306%5Bgame%5D%3D28687%26306%5Bservice%5D%3D1%26307%5Bgame%5D%3D28776%26307%5Bservice%5D%3D1%26308%5Bgame%5D%3D28799%26308%5Bservice%5D%3D1';
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$header = [];
$header[] = ':method: POST';
$header[] = ':scheme: https';
$header[] = ':authority: www.g2g.com';
$header[] = ':path: /searchAllGame/CountListing';
$header[] = 'accept: application/json, text/javascript, */*; q=0.01';
$header[] = 'accept-language: ru,en-US;q=0.9,en;q=0.8';
$header[] = 'content-type: application/x-www-form-urlencoded; charset=UTF-8';
#$header[] = 'accept-encoding: gzip, deflate, br';
$header[] = 'origin: https://www.g2g.com';
$header[] = 'referer: https://www.g2g.com/searchAllGame/index?service=1';
$header[] = 'sec-ch-ua: "Google Chrome";v="89", "Chromium";v="89", ";Not A Brand";v="99"';
$header[] = 'sec-ch-ua-mobile: ?0';
$header[] = 'sec-fetch-dest: empty';
$header[] = 'sec-fetch-mode: cors';
$header[] = 'sec-fetch-site: same-origin';
#$header[] = 'content-length: 11788';
$header[] = 'x-requested-with: XMLHttpRequest';
$header[] = 'cookie: g2g_regional=%7B%22currency%22%3A%22EUR%22%2C%22language%22%3A%22en%22%7D; g2g_rv2=%7B%22_7820311%22%3A%7B%22ref_id%22%3A7820311%7D%2C%22_7846618%22%3A%7B%22ref_id%22%3A7846618%7D%7D; noticebar_cookie=1; _gcl_au=1.1.1946589377.1615405351; _ga=GA1.2.1754248161.1615405351; G2GSESID_V4=k1fpalashflg9nnrevpeq15023; _gid=GA1.2.1904935273.1617563923';
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$res = curl_exec($ch);
curl_close($ch);
Последнее редактирование: