curl bach конвертировать в curl PHP

12 3
D
На сайте с 28.06.2008
Offline
1104
419

есть запрос который нужно повторить на пхп, копирую его в хроме как - Copy as curl  bach

curl 'https://app.neilpatel.com/api/domain_top_countries' \
  -H 'authority: app.neilpatel.com' \
  -H 'pragma: no-cache' \
  -H 'cache-control: no-cache' \
  -H 'sec-ch-ua: " Not;A Brand";v="99", "Yandex";v="91", "Chromium";v="91"' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'dnt: 1' \
  -H 'authorization: Bearer app#unlogged__ca314491fc3076cde84249aadee7390867315a5a' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 YaBrowser/21.6.4.786 Yowser/2.5 Safari/537.36' \
  -H 'content-type: application/json;charset=UTF-8' \
  -H 'origin: https://app.neilpatel.com' \
  -H 'sec-fetch-site: same-origin' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-dest: empty' \
  -H 'referer: https://app.neilpatel.com/en/traffic_analyzer/overview?domain=smartvest.com&locId=2643&lang=ru' \
  -H 'accept-language: ru,en;q=0.9' \
  -H 'cookie: _vwo_uuid_v2=D5A278168CABCC93C5145066AE261DBED|5666ddd2275d99f5073f8ce655917132; km_ai=UkK71Ym451v9jcJPO0ArO7hoNMU%3D; km_vs=1; _hjid=e8a3ee83-565e-427e-82bb-b8f35ea91f33; _hjFirstSeen=1; _ga=GA1.2.562800073.1630509268; _gid=GA1.2.36096469.1630509268; _vis_opt_s=1%7C; _vis_opt_test_cookie=1; _vwo_uuid=D5A278168CABCC93C5145066AE261DBED; _vwo_ds=3%241630509266%3A9.85814881%3A%3A; __zlcmid=15rkIbNxoYwtqlZ; amp_276990=64ifod5c40mEkwUZ2BrZKU...1fegupu23.1fegveiok.0.0.0; kvcd=1630509944017; km_lv=1630509944; _gat_UA-16137731-1=1; _gat_gtag_UA_16137731_1=1; _vwo_sn=0%3A5' \
  --data-raw '{"domain":"smartvest.com","lang_locs":["en:2840","en:2826","ja:2392","en:2036","en:2124","ar:2004","en:2004","ps:2004","fa:2004","sq:2008","en:2008","ar:2012","en:2012","fr:2012","en:2016","ca:2020","en:2020","en:2024","kg:2024","pt:2024","en:2028","en:2032","es:2032","hy:2051","en:2051","ru:2051","es:2036","en:2040","de:2040","es:2040","az:2031","en:2031","ru:2031","ar:2048","en:2048","bn:2050","en:2050","en:2052","be:2112","en:2112","ru:2112","nl:2056","en:2056","fr:2056","de:2056","es:2056","en:2084","es:2084","en:2204","fr:2204","yo:2204","en:2064","en:2068","qu:2068","es:2068","bs:2070","hr:2070","en:2070","sr:2070","en:2072","tn:2072","pt:2076","zh_cn:2096","en:2096","ms:2096","bg:2100","en:2100","en:2854","fr:2854","en:2108","fr:2108","rn:2108","sw:2108","en:2116","km:2116","en:2120","fr:2120","fr:2124","es:2124","en:2132","pt:2132","en:2535","en:2140","fr:2140","ar:2148","en:2148","fr:2148","en:2152","es:2152","en:2170","es:2170","fr:2174","en:2184","en:2188","es:2188","en:2384","fr:2384","hr:2191","en:2191","en:2531","en:2196","el:2196","tr:2196","cs:2203","en:2203","ach:2180","fr:2180","kg:2180","in:2180","sw:2180","lua:2180","da:2208","en:2208","fo:2208","es:2208","ar:2262","en:2262","fr:2262","so:2262","en:2212","en:2214","es:2214","en:2218","es:2218","ar:2818","en:2818","en:2222","es:2222","en:2226","ar:2232","en:2232","en:2233","et:2233","ru:2233","en:2748","am:2231","en:2231","om:2231","so:2231","ti:2231","en:2583","en:2242","en:2246","fi:2246","es:2246","sv:2246","en:2250","fr:2250","es:2250","en:2258","fr:2258","en:2266","fr:2266","en:2268","ka:2268","en:2276","de:2276","es:2276","ak:2288","en:2288","ee:2288","gaa:2288","ha:2288","en:2300","el:2300","en:2308","en:2316","en:2320","es:2320","en:2831","fr:2831","en:2324","fr:2324","en:2624","en:2328","en:2332","fr:2332","ht:2332","en:2340","es:2340","zh:2344","zh_cn:2344","zh_tw:2344","zh_hk:2344","en:2344","en:2348","hu:2348","en:2352","is:2352","bn:2356","en:2356","gu:2356","hi:2356","kn:2356","ml:2356","mr:2356","pa:2356","ta:2356","te:2356","ban:2360","jw:2360","en:2360","id:2360","ar:2368","en:2368","ckb:2368","en:2372","ar:2376","en:2376","he:2376","en:2380","it:2380","es:2380","en:2388","en:2392","en:2832","fr:2832","ar:2400","en:2400","en:2398","kk:2398","ru:2398","en:2404","sw:2404","en:2296","ar:2414","en:2414","en:2417","ky:2417","ru:2417","en:2418","lo:2418","en:2428","lv:2428","lt:2428","ru:2428","ar:2422","hy:2422","en:2422","fr:2422","en:2426","st:2426","en:2430","ar:2434","en:2434","it:2434","en:2438","de:2438","en:2440","lt:2440","en:2442","fr:2442","de:2442","en:2450","fr:2450","mg:2450","ny:2454","en:2454","tum:2454","en:2458","ms:2458","en:2462","en:2466","fr:2466","en:2470","mt:2470","en:2584","ar:2478","en:2478","en:2480","fr:2480","mfe:2480","en:2484","es:2484","mo:2498","ro:2498","ru:2498","en:2492","en:2496","mn:2496","bs:2499","en:2499","sr:2499","ar:2504","en:2504","fr:2504","ny:2508","en:2508","pt:2508","sn:2508","sw:2508","my:2104","en:2104","af:2516","en:2516","de:2516","en:2520","en:2524","ne:2524","nl:2528","fy:2528","es:2528","en:2540","fr:2540","en:2554","mi:2554","en:2558","es:2558","en:2562","fr:2562","ha:2562","en:2566","ha:2566","ig:2566","pcm:2566","yo:2566","en:2570","en:2574","en:2807","mk:2807","en:2580","nb:2578","ar:2512","en:2512","en:2586","ps:2586","sd:2586","ur:2586","en:2585","ar:2275","en:2275","en:2598","en:2600","gn:2600","es:2600","en:2604","qu:2604","es:2604","ceb:2608","en:2608","fil:2608","tl:2608","en:2612","en:2616","pl:2616","en:2620","pt:2620","en:2630","es:2630","ar:2634","en:2634","fr:2178","kg:2178","in:2178","en:2642","de:2642","hu:2642","ro:2642","en:2643","ru:2643","en:2646","fr:2646","rw:2646","sw:2646","en:2654","en:2659","en:2662","en:2666","en:2670","en:2882","en:2674","it:2674","pt:2678","ar:2682","en:2682","en:2686","fr:2686","wo:2686","en:2688","sr:2688","en:2690","fr:2690","crs:2690","en:2694","kri:2694","zh:2702","zh_cn:2702","zh_tw:2702","zh_sg:2702","en:2702","ms:2702","ta:2702","en:2534","en:2703","sk:2703","en:2705","sl:2705","en:2090","ar:2706","en:2706","so:2706","af:2710","en:2710","nso:2710","st:2710","tn:2710","xh:2710","zu:2710","en:2410","ko:2410","eu:2724","ca:2724","en:2724","gl:2724","es:2724","en:2144","si:2144","ta:2144","fr:2740","en:2752","es:2752","sv:2752","en:2756","fr:2756","de:2756","it:2756","rm:2756","zh:2158","zh_cn:2158","zh_tw:2158","en:2158","en:2762","ru:2762","tg:2762","en:2834","sw:2834","en:2764","th:2764","en:2044","en:2270","wo:2270","pt:2626","en:2768","ee:2768","fr:2768","en:2772","en:2776","to:2776","zh_tw:2780","en:2780","es:2780","fr:2780","hi:2780","ar:2788","en:2788","fr:2788","en:2792","tr:2792","en:2795","ru:2795","tk:2795","uz:2795","en:2800","lg:2800","rw:2800","ach:2800","nyn:2800","nym:2800","sw:2800","en:2804","ru:2804","uk:2804","ar:2784","en:2784","hi:2784","fa:2784","ur:2784","fr:2826","it:2826","pt:2826","ru:2826","es:2826","zh_cn:2840","zh_tw:2840","da:2840","nl:2840","fr:2840","de:2840","ko:2840","pt:2840","ru:2840","es:2840","sv:2840","vi:2840","en:2858","es:2858","en:2860","ru:2860","uz:2860","en:2548","fr:2548","en:2336","en:2862","es:2862","zh_tw:2704","en:2704","fr:2704","vi:2704","en:2876","ar:2887","en:2887","ny:2894","tum:2894","en:2894","bem:2894","loz:2894","ny:2716","en:2716","sn:2716","tn:2716","zu:2716"]}' \
  --compressed

выполняю в консоли, запрос проходит.

Пробую из PHP, ошибка. Где ошибаюсь?

$refer = 'https://app.neilpatel.com/en/traffic_analyzer/overview';

$site = 'https://app.neilpatel.com/api/domain_top_countries';

$data = array (
    'authority'=>'app.neilpatel.com',
    'pragma'=>'no-cache',
    'cache-control'=>'no-cache',
    'sec-ch-ua'=>'" Not;A Brand";v="99" "Yandex";v="91" "Chromium";v="91"',
    'accept'=>'application/json text/plain */*',
    'dnt'=>'1',
    'authorization'=>'Bearer app#unlogged__ca314491fc3076cde84249aadee7390867315a5a',
    'sec-ch-ua-mobile'=>'?0',
    'user-agent'=>'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/91.0.4472.164 YaBrowser/21.6.4.786 Yowser/2.5 Safari/537.36',
    'content-type'=>'application/json;charset=UTF-8',
    'origin'=>'https://app.neilpatel.com',
    'sec-fetch-site'=>'same-origin',
    'sec-fetch-mode'=>'cors',
    'sec-fetch-dest'=>'empty',
    'referer'=>'https://app.neilpatel.com/en/traffic_analyzer/overview?domain=smartvest.com&locId=2643&lang=ru',
    'accept-language'=>'ruen;q=0.9',
    'cookie'=>'_vwo_uuid_v2=D5A278168CABCC93C5145066AE261DBED|5666ddd2275d99f5073f8ce655917132; km_ai=UkK71Ym451v9jcJPO0ArO7hoNMU%3D; km_vs=1; _hjid=e8a3ee83-565e-427e-82bb-b8f35ea91f33; _hjFirstSeen=1; _ga=GA1.2.562800073.1630509268; _gid=GA1.2.36096469.1630509268; _vis_opt_s=1%7C; _vis_opt_test_cookie=1; _vwo_uuid=D5A278168CABCC93C5145066AE261DBED; _vwo_ds=3%241630509266%3A9.85814881%3A%3A; __zlcmid=15rkIbNxoYwtqlZ; amp_276990=64ifod5c40mEkwUZ2BrZKU...1fegupu23.1fegveiok.0.0.0; kvcd=1630509944017; km_lv=1630509944; _gat_UA-16137731-1=1; _gat_gtag_UA_16137731_1=1; _vwo_sn=0%3A5',
    'data-raw '=>'{"domain":"smartvest.com""lang_locs":["en:2840""en:2826""ja:2392""en:2036""en:2124""ar:2004""en:2004""ps:2004""fa:2004""sq:2008""en:2008""ar:2012""en:2012""fr:2012""en:2016""ca:2020""en:2020""en:2024""kg:2024""pt:2024""en:2028""en:2032""es:2032""hy:2051""en:2051""ru:2051""es:2036""en:2040""de:2040""es:2040""az:2031""en:2031""ru:2031""ar:2048""en:2048""bn:2050""en:2050""en:2052""be:2112""en:2112""ru:2112""nl:2056""en:2056""fr:2056""de:2056""es:2056""en:2084""es:2084""en:2204""fr:2204""yo:2204""en:2064""en:2068""qu:2068""es:2068""bs:2070""hr:2070""en:2070""sr:2070""en:2072""tn:2072""pt:2076""zh_cn:2096""en:2096""ms:2096""bg:2100""en:2100""en:2854""fr:2854""en:2108""fr:2108""rn:2108""sw:2108""en:2116""km:2116""en:2120""fr:2120""fr:2124""es:2124""en:2132""pt:2132""en:2535""en:2140""fr:2140""ar:2148""en:2148""fr:2148""en:2152""es:2152""en:2170""es:2170""fr:2174""en:2184""en:2188""es:2188""en:2384""fr:2384""hr:2191""en:2191""en:2531""en:2196""el:2196""tr:2196""cs:2203""en:2203""ach:2180""fr:2180""kg:2180""in:2180""sw:2180""lua:2180""da:2208""en:2208""fo:2208""es:2208""ar:2262""en:2262""fr:2262""so:2262""en:2212""en:2214""es:2214""en:2218""es:2218""ar:2818""en:2818""en:2222""es:2222""en:2226""ar:2232""en:2232""en:2233""et:2233""ru:2233""en:2748""am:2231""en:2231""om:2231""so:2231""ti:2231""en:2583""en:2242""en:2246""fi:2246""es:2246""sv:2246""en:2250""fr:2250""es:2250""en:2258""fr:2258""en:2266""fr:2266""en:2268""ka:2268""en:2276""de:2276""es:2276""ak:2288""en:2288""ee:2288""gaa:2288""ha:2288""en:2300""el:2300""en:2308""en:2316""en:2320""es:2320""en:2831""fr:2831""en:2324""fr:2324""en:2624""en:2328""en:2332""fr:2332""ht:2332""en:2340""es:2340""zh:2344""zh_cn:2344""zh_tw:2344""zh_hk:2344""en:2344""en:2348""hu:2348""en:2352""is:2352""bn:2356""en:2356""gu:2356""hi:2356""kn:2356""ml:2356""mr:2356""pa:2356""ta:2356""te:2356""ban:2360""jw:2360""en:2360""id:2360""ar:2368""en:2368""ckb:2368""en:2372""ar:2376""en:2376""he:2376""en:2380""it:2380""es:2380""en:2388""en:2392""en:2832""fr:2832""ar:2400""en:2400""en:2398""kk:2398""ru:2398""en:2404""sw:2404""en:2296""ar:2414""en:2414""en:2417""ky:2417""ru:2417""en:2418""lo:2418""en:2428""lv:2428""lt:2428""ru:2428""ar:2422""hy:2422""en:2422""fr:2422""en:2426""st:2426""en:2430""ar:2434""en:2434""it:2434""en:2438""de:2438""en:2440""lt:2440""en:2442""fr:2442""de:2442""en:2450""fr:2450""mg:2450""ny:2454""en:2454""tum:2454""en:2458""ms:2458""en:2462""en:2466""fr:2466""en:2470""mt:2470""en:2584""ar:2478""en:2478""en:2480""fr:2480""mfe:2480""en:2484""es:2484""mo:2498""ro:2498""ru:2498""en:2492""en:2496""mn:2496""bs:2499""en:2499""sr:2499""ar:2504""en:2504""fr:2504""ny:2508""en:2508""pt:2508""sn:2508""sw:2508""my:2104""en:2104""af:2516""en:2516""de:2516""en:2520""en:2524""ne:2524""nl:2528""fy:2528""es:2528""en:2540""fr:2540""en:2554""mi:2554""en:2558""es:2558""en:2562""fr:2562""ha:2562""en:2566""ha:2566""ig:2566""pcm:2566""yo:2566""en:2570""en:2574""en:2807""mk:2807""en:2580""nb:2578""ar:2512""en:2512""en:2586""ps:2586""sd:2586""ur:2586""en:2585""ar:2275""en:2275""en:2598""en:2600""gn:2600""es:2600""en:2604""qu:2604""es:2604""ceb:2608""en:2608""fil:2608""tl:2608""en:2612""en:2616""pl:2616""en:2620""pt:2620""en:2630""es:2630""ar:2634""en:2634""fr:2178""kg:2178""in:2178""en:2642""de:2642""hu:2642""ro:2642""en:2643""ru:2643""en:2646""fr:2646""rw:2646""sw:2646""en:2654""en:2659""en:2662""en:2666""en:2670""en:2882""en:2674""it:2674""pt:2678""ar:2682""en:2682""en:2686""fr:2686""wo:2686""en:2688""sr:2688""en:2690""fr:2690""crs:2690""en:2694""kri:2694""zh:2702""zh_cn:2702""zh_tw:2702""zh_sg:2702""en:2702""ms:2702""ta:2702""en:2534""en:2703""sk:2703""en:2705""sl:2705""en:2090""ar:2706""en:2706""so:2706""af:2710""en:2710""nso:2710""st:2710""tn:2710""xh:2710""zu:2710""en:2410""ko:2410""eu:2724""ca:2724""en:2724""gl:2724""es:2724""en:2144""si:2144""ta:2144""fr:2740""en:2752""es:2752""sv:2752""en:2756""fr:2756""de:2756""it:2756""rm:2756""zh:2158""zh_cn:2158""zh_tw:2158""en:2158""en:2762""ru:2762""tg:2762""en:2834""sw:2834""en:2764""th:2764""en:2044""en:2270""wo:2270""pt:2626""en:2768""ee:2768""fr:2768""en:2772""en:2776""to:2776""zh_tw:2780""en:2780""es:2780""fr:2780""hi:2780""ar:2788""en:2788""fr:2788""en:2792""tr:2792""en:2795""ru:2795""tk:2795""uz:2795""en:2800""lg:2800""rw:2800""ach:2800""nyn:2800""nym:2800""sw:2800""en:2804""ru:2804""uk:2804""ar:2784""en:2784""hi:2784""fa:2784""ur:2784""fr:2826""it:2826""pt:2826""ru:2826""es:2826""zh_cn:2840""zh_tw:2840""da:2840""nl:2840""fr:2840""de:2840""ko:2840""pt:2840""ru:2840""es:2840""sv:2840""vi:2840""en:2858""es:2858""en:2860""ru:2860""uz:2860""en:2548""fr:2548""en:2336""en:2862""es:2862""zh_tw:2704""en:2704""fr:2704""vi:2704""en:2876""ar:2887""en:2887""ny:2894""tum:2894""en:2894""bem:2894""loz:2894""ny:2716""en:2716""sn:2716""tn:2716""zu:2716"]}',

    );



$pars = getPageByUrlPost($site, $refer, $data);


D
На сайте с 28.06.2008
Offline
1104
#1

А так - пусто

// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://app.neilpatel.com/api/domain_top_countries');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');

curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$headers = array();
$headers[] = 'Authority: app.neilpatel.com';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'Sec-Ch-Ua: \" Not;A Brand\";v=\"99\", \"Yandex\";v=\"91\", \"Chromium\";v=\"91\"';
$headers[] = 'Accept: application/json, text/plain, */*';
$headers[] = 'Dnt: 1';
$headers[] = 'Authorization: Bearer app#unlogged__ca314491fc3076cde84249aadee7390867315a5a';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 YaBrowser/21.6.4.786 Yowser/2.5 Safari/537.36';
$headers[] = 'Content-Type: application/json;charset=UTF-8';
$headers[] = 'Origin: https://app.neilpatel.com';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Referer: https://app.neilpatel.com/en/traffic_analyzer/overview?domain=smartvest.com&locId=2643&lang=ru';
$headers[] = 'Accept-Language: ru,en;q=0.9';
$headers[] = 'Cookie: _vwo_uuid_v2=D5A278168CABCC93C5145066AE261DBED|5666ddd2275d99f5073f8ce655917132; km_ai=UkK71Ym451v9jcJPO0ArO7hoNMU%3D; km_vs=1; _hjid=e8a3ee83-565e-427e-82bb-b8f35ea91f33; _hjFirstSeen=1; _ga=GA1.2.562800073.1630509268; _gid=GA1.2.36096469.1630509268; _vis_opt_s=1%7C; _vis_opt_test_cookie=1; _vwo_uuid=D5A278168CABCC93C5145066AE261DBED; _vwo_ds=3%241630509266%3A9.85814881%3A%3A; __zlcmid=15rkIbNxoYwtqlZ; amp_276990=64ifod5c40mEkwUZ2BrZKU...1fegupu23.1fegveiok.0.0.0; kvcd=1630509944017; km_lv=1630509944; _gat_UA-16137731-1=1; _gat_gtag_UA_16137731_1=1; _vwo_sn=0%3A5';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);

var_dump($result);
T7
На сайте с 19.09.2018
Offline
63
#2
Dram #:
А так - пусто
Dram :
--data-raw '{"domain":"smartvest.com",

что то не видать

lutskboy
На сайте с 22.11.2013
Offline
181
#3

а без етого?

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');

curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
D
На сайте с 28.06.2008
Offline
1104
#4
timo-71 #:
--data-raw '{"domain":"smartvest.com",

Вот я и не знаю как правильно добавить  --data-raw '{"domain":"smartvest.com",

D
На сайте с 28.06.2008
Offline
1104
#5
lutskboy #:

а без етого?

тоже пусто

I7
На сайте с 12.06.2008
Offline
367
#6
Dram #:

Вот я и не знаю как правильно добавить  --data-raw '{"domain":"smartvest.com",

Через CURLOPT_POSTFIELDS попробуйте.

W1
На сайте с 22.01.2021
Offline
306
#7
Dram #:
Вот я и не знаю как правильно добавить

Ну это точно не заголовок, как у Вас сделано вперемешку с заголовками, а данные.

Мой форум - https://webinfo.guru –Там я всегда на связи
D
На сайте с 28.06.2008
Offline
1104
#8

Добавил

$headers[] = '{\"Domain\": \"smartvest.com\",\"lang_locs\":[\"en:2840\",\"en:2826\",\"ja:2392\",\"en:2036\",\"en:2124\",\"ar:2004\",\"en:2004\",\"ps:2004\",\"fa:2004\",\"sq:2008\",\"en:2008\",\"ar:2012\",\"en:2012\",\"fr:2012\",\"en:2016\",\"ca:2020\",\"en:2020\",\"en:2024\",\"kg:2024\",\"pt:2024\",\"en:2028\",\"en:2032\",\"es:2032\",\"hy:2051\",\"en:2051\",\"ru:2051\",\"es:2036\",\"en:2040\",\"de:2040\",\"es:2040\",\"az:2031\",\"en:2031\",\"ru:2031\",\"ar:2048\",\"en:2048\",\"bn:2050\",\"en:2050\",\"en:2052\",\"be:2112\",\"en:2112\",\"ru:2112\",\"nl:2056\",\"en:2056\",\"fr:2056\",\"de:2056\",\"es:2056\",\"en:2084\",\"es:2084\",\"en:2204\",\"fr:2204\",\"yo:2204\",\"en:2064\",\"en:2068\",\"qu:2068\",\"es:2068\",\"bs:2070\",\"hr:2070\",\"en:2070\",\"sr:2070\",\"en:2072\",\"tn:2072\",\"pt:2076\",\"zh_cn:2096\",\"en:2096\",\"ms:2096\",\"bg:2100\",\"en:2100\",\"en:2854\",\"fr:2854\",\"en:2108\",\"fr:2108\",\"rn:2108\",\"sw:2108\",\"en:2116\",\"km:2116\",\"en:2120\",\"fr:2120\",\"fr:2124\",\"es:2124\",\"en:2132\",\"pt:2132\",\"en:2535\",\"en:2140\",\"fr:2140\",\"ar:2148\",\"en:2148\",\"fr:2148\",\"en:2152\",\"es:2152\",\"en:2170\",\"es:2170\",\"fr:2174\",\"en:2184\",\"en:2188\",\"es:2188\",\"en:2384\",\"fr:2384\",\"hr:2191\",\"en:2191\",\"en:2531\",\"en:2196\",\"el:2196\",\"tr:2196\",\"cs:2203\",\"en:2203\",\"ach:2180\",\"fr:2180\",\"kg:2180\",\"in:2180\",\"sw:2180\",\"lua:2180\",\"da:2208\",\"en:2208\",\"fo:2208\",\"es:2208\",\"ar:2262\",\"en:2262\",\"fr:2262\",\"so:2262\",\"en:2212\",\"en:2214\",\"es:2214\",\"en:2218\",\"es:2218\",\"ar:2818\",\"en:2818\",\"en:2222\",\"es:2222\",\"en:2226\",\"ar:2232\",\"en:2232\",\"en:2233\",\"et:2233\",\"ru:2233\",\"en:2748\",\"am:2231\",\"en:2231\",\"om:2231\",\"so:2231\",\"ti:2231\",\"en:2583\",\"en:2242\",\"en:2246\",\"fi:2246\",\"es:2246\",\"sv:2246\",\"en:2250\",\"fr:2250\",\"es:2250\",\"en:2258\",\"fr:2258\",\"en:2266\",\"fr:2266\",\"en:2268\",\"ka:2268\",\"en:2276\",\"de:2276\",\"es:2276\",\"ak:2288\",\"en:2288\",\"ee:2288\",\"gaa:2288\",\"ha:2288\",\"en:2300\",\"el:2300\",\"en:2308\",\"en:2316\",\"en:2320\",\"es:2320\",\"en:2831\",\"fr:2831\",\"en:2324\",\"fr:2324\",\"en:2624\",\"en:2328\",\"en:2332\",\"fr:2332\",\"ht:2332\",\"en:2340\",\"es:2340\",\"zh:2344\",\"zh_cn:2344\",\"zh_tw:2344\",\"zh_hk:2344\",\"en:2344\",\"en:2348\",\"hu:2348\",\"en:2352\",\"is:2352\",\"bn:2356\",\"en:2356\",\"gu:2356\",\"hi:2356\",\"kn:2356\",\"ml:2356\",\"mr:2356\",\"pa:2356\",\"ta:2356\",\"te:2356\",\"ban:2360\",\"jw:2360\",\"en:2360\",\"id:2360\",\"ar:2368\",\"en:2368\",\"ckb:2368\",\"en:2372\",\"ar:2376\",\"en:2376\",\"he:2376\",\"en:2380\",\"it:2380\",\"es:2380\",\"en:2388\",\"en:2392\",\"en:2832\",\"fr:2832\",\"ar:2400\",\"en:2400\",\"en:2398\",\"kk:2398\",\"ru:2398\",\"en:2404\",\"sw:2404\",\"en:2296\",\"ar:2414\",\"en:2414\",\"en:2417\",\"ky:2417\",\"ru:2417\",\"en:2418\",\"lo:2418\",\"en:2428\",\"lv:2428\",\"lt:2428\",\"ru:2428\",\"ar:2422\",\"hy:2422\",\"en:2422\",\"fr:2422\",\"en:2426\",\"st:2426\",\"en:2430\",\"ar:2434\",\"en:2434\",\"it:2434\",\"en:2438\",\"de:2438\",\"en:2440\",\"lt:2440\",\"en:2442\",\"fr:2442\",\"de:2442\",\"en:2450\",\"fr:2450\",\"mg:2450\",\"ny:2454\",\"en:2454\",\"tum:2454\",\"en:2458\",\"ms:2458\",\"en:2462\",\"en:2466\",\"fr:2466\",\"en:2470\",\"mt:2470\",\"en:2584\",\"ar:2478\",\"en:2478\",\"en:2480\",\"fr:2480\",\"mfe:2480\",\"en:2484\",\"es:2484\",\"mo:2498\",\"ro:2498\",\"ru:2498\",\"en:2492\",\"en:2496\",\"mn:2496\",\"bs:2499\",\"en:2499\",\"sr:2499\",\"ar:2504\",\"en:2504\",\"fr:2504\",\"ny:2508\",\"en:2508\",\"pt:2508\",\"sn:2508\",\"sw:2508\",\"my:2104\",\"en:2104\",\"af:2516\",\"en:2516\",\"de:2516\",\"en:2520\",\"en:2524\",\"ne:2524\",\"nl:2528\",\"fy:2528\",\"es:2528\",\"en:2540\",\"fr:2540\",\"en:2554\",\"mi:2554\",\"en:2558\",\"es:2558\",\"en:2562\",\"fr:2562\",\"ha:2562\",\"en:2566\",\"ha:2566\",\"ig:2566\",\"pcm:2566\",\"yo:2566\",\"en:2570\",\"en:2574\",\"en:2807\",\"mk:2807\",\"en:2580\",\"nb:2578\",\"ar:2512\",\"en:2512\",\"en:2586\",\"ps:2586\",\"sd:2586\",\"ur:2586\",\"en:2585\",\"ar:2275\",\"en:2275\",\"en:2598\",\"en:2600\",\"gn:2600\",\"es:2600\",\"en:2604\",\"qu:2604\",\"es:2604\",\"ceb:2608\",\"en:2608\",\"fil:2608\",\"tl:2608\",\"en:2612\",\"en:2616\",\"pl:2616\",\"en:2620\",\"pt:2620\",\"en:2630\",\"es:2630\",\"ar:2634\",\"en:2634\",\"fr:2178\",\"kg:2178\",\"in:2178\",\"en:2642\",\"de:2642\",\"hu:2642\",\"ro:2642\",\"en:2643\",\"ru:2643\",\"en:2646\",\"fr:2646\",\"rw:2646\",\"sw:2646\",\"en:2654\",\"en:2659\",\"en:2662\",\"en:2666\",\"en:2670\",\"en:2882\",\"en:2674\",\"it:2674\",\"pt:2678\",\"ar:2682\",\"en:2682\",\"en:2686\",\"fr:2686\",\"wo:2686\",\"en:2688\",\"sr:2688\",\"en:2690\",\"fr:2690\",\"crs:2690\",\"en:2694\",\"kri:2694\",\"zh:2702\",\"zh_cn:2702\",\"zh_tw:2702\",\"zh_sg:2702\",\"en:2702\",\"ms:2702\",\"ta:2702\",\"en:2534\",\"en:2703\",\"sk:2703\",\"en:2705\",\"sl:2705\",\"en:2090\",\"ar:2706\",\"en:2706\",\"so:2706\",\"af:2710\",\"en:2710\",\"nso:2710\",\"st:2710\",\"tn:2710\",\"xh:2710\",\"zu:2710\",\"en:2410\",\"ko:2410\",\"eu:2724\",\"ca:2724\",\"en:2724\",\"gl:2724\",\"es:2724\",\"en:2144\",\"si:2144\",\"ta:2144\",\"fr:2740\",\"en:2752\",\"es:2752\",\"sv:2752\",\"en:2756\",\"fr:2756\",\"de:2756\",\"it:2756\",\"rm:2756\",\"zh:2158\",\"zh_cn:2158\",\"zh_tw:2158\",\"en:2158\",\"en:2762\",\"ru:2762\",\"tg:2762\",\"en:2834\",\"sw:2834\",\"en:2764\",\"th:2764\",\"en:2044\",\"en:2270\",\"wo:2270\",\"pt:2626\",\"en:2768\",\"ee:2768\",\"fr:2768\",\"en:2772\",\"en:2776\",\"to:2776\",\"zh_tw:2780\",\"en:2780\",\"es:2780\",\"fr:2780\",\"hi:2780\",\"ar:2788\",\"en:2788\",\"fr:2788\",\"en:2792\",\"tr:2792\",\"en:2795\",\"ru:2795\",\"tk:2795\",\"uz:2795\",\"en:2800\",\"lg:2800\",\"rw:2800\",\"ach:2800\",\"nyn:2800\",\"nym:2800\",\"sw:2800\",\"en:2804\",\"ru:2804\",\"uk:2804\",\"ar:2784\",\"en:2784\",\"hi:2784\",\"fa:2784\",\"ur:2784\",\"fr:2826\",\"it:2826\",\"pt:2826\",\"ru:2826\",\"es:2826\",\"zh_cn:2840\",\"zh_tw:2840\",\"da:2840\",\"nl:2840\",\"fr:2840\",\"de:2840\",\"ko:2840\",\"pt:2840\",\"ru:2840\",\"es:2840\",\"sv:2840\",\"vi:2840\",\"en:2858\",\"es:2858\",\"en:2860\",\"ru:2860\",\"uz:2860\",\"en:2548\",\"fr:2548\",\"en:2336\",\"en:2862\",\"es:2862\",\"zh_tw:2704\",\"en:2704\",\"fr:2704\",\"vi:2704\",\"en:2876\",\"ar:2887\",\"en:2887\",\"ny:2894\",\"tum:2894\",\"en:2894\",\"bem:2894\",\"loz:2894\",\"ny:2716\",\"en:2716\",\"sn:2716\",\"tn:2716\",\"zu:2716\"]}';

Все равно пусто

D
На сайте с 28.06.2008
Offline
1104
#9
webinfo #:

Ну это точно не заголовок, как у Вас сделано, а данные.

Как их послать корректно?  

D
На сайте с 28.06.2008
Offline
1104
#10
Ilya74 #:
CURLOPT_POSTFIELDS

попробовал

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>403 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
Bad request.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: fJcaoZO6Axe7FovZgfzKWvw2nr6D-r8ax8Cpe0srvS5uOTJU-XBnaA==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML>"
12 3

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий