php - How to Scrape all Url data with a same time..? -


<?php   $send=$_get['send']; $delv=$_get['delv']; $weight=$_get['weight'];     $postdata ='{"collectioncountry": '.$send.' ,"collectionpostcode":null,"collectiontown":null,"deliverycountry": '.$delv.' ,"deliverypostcode":null,"deliverytown":null,"requirescommercialinvoice":false,"collectiondate":null,"quotevalue":null,"parcels":[{"weight":'.$weight.',"length":null,"width":null,"height":null}],"columns":[{"header":"next day delivery","template":"grid_results_column","endpoint":"/quotes/api/results/column?deliverytimes=1","description":null,"feature":null,"includetags":[],"excludetags":[],"hasresults":true,"loading":true},{"header":"2 day delivery","template":"grid_results_column","endpoint":"/quotes/api/results/column?deliverytimes%5b0%5d=2&deliverytimes%5b1%5d=50&deliverytimes%5b2%5d=54","description":null,"feature":null,"includetags":[],"excludetags":[],"hasresults":true,"loading":true},{"header":"3+day delivery","template":"grid_results_column","endpoint":"/quotes/api/results/column?deliverytimes%5b0%5d=3&deliverytimes%5b1%5d=51&deliverytimes%5b2%5d=55","description":null,"feature":null,"includetags":[],"excludetags":[],"hasresults":true,"loading":true}],"quoteresultlayout":null,"quotetype":0,"sortoptions":[{"desc":"most popular","sortfield":"recommended","sortdesc":false,"id":"recommended|false"},{"desc":"price low-high","sortfield":"total","sortdesc":false,"id":"total|false"},{"desc":"price high-low","sortfield":"nettotal","sortdesc":true,"id":"nettotal|true"},{"desc":"drop-off distance","sortfield":"distance","sortdesc":false,"id":"distance|false"}],"currencycode":"gbp"}'; //print_r ($postdata); exit;         $jsonurl = 'https://.......................?deliverytimes%5b0%5d=3&deliverytimes%5b1%5d=51&deliverytimes%5b2%5d=55';     $jsonurl = 'https://................................?deliverytimes%5b0%5d=2&deliverytimes%5b1%5d=50&deliverytimes%5b2%5d=54';     $jsonurl = 'https://........................?deliverytimes=1';      $headers = array('accept: application/json, text/plain, */*',     'content-type:application/json;charset=utf-8'     ,"accept-encoding:gzip, deflate, br",     "requestverificationtoken: taindimqoxcl_ysszeyvp0pwtby3ow4nq6jttpvmysfuum_05vcvlknfgdgxzl_zorwh0bauoz68cfnjopv8uui8k9y1",     //"user-agent: mozilla/5.0 (windows nt 6.1; wow64; rv:47.0) gecko/20100101 firefox/47.0",     //"referer: https://www.parcel2go.com/quotes?col=219&dest=219&p=1~23",     //"host: www.parcel2go.com",     "connection:keep-alive",     "cache-control:max-age=0",     "accept-language:en-us,en;q=0.5",     "host: www.parcel2go.com",     "cookie:_qst_s=4; _qubittracker=1467700893010.547270; _qst=%5b4%2c0%5d; qb_ss_status=r21:r&i8+|5+3:iq&lze|/kq:ob&moe|bdaw:r&m4s|bdao:he&m4u|bdbz:h3&m4z|bdbk:hm&m4a|bebn:ly&m/c|be/i:lj&ni+|bfsr:b2&nmt|bfc5:c/&nnz|bfdp:gm&nn7|bgvy:ex&nwg|bglf:kk&nzg|bhq8:j&nie|bisk:cm&nwd|bitj:cx&nwr|bj1c:fd&oan|bj4o:0&oan|bj5e:hl&oaw|bj9l:i1&obc|bkeb:mn&ogy|blmz:na&kei|bmb/:jl&ow5|bmco:ef&ow+|bnmi:pn&ol2|bqg1:/&pft|bqup:oz&ph7|bqus:mm&ph8|bqvc:lt&pii|bqvg:d6&pij|bqvq:ke&pim|bqvu:gq&pin|broy:nb&pvo|bss8:mg&phv; _qb_se=r21:i8+&vxodord|/kq:moe&vxodore|bdaw:m4s&vw5ywvv|bebn:m/c&vxokaxz|bfc5:nnz&vxokaxk|bglf:nzg&vxokaxb|bitj:nwr&vxokaxd|bj1c:oan&vxodorh|bnmi:ol2&vxodorf|bqup:ph7&vxokaxn|bqvc:pii&vxokaxq; x_t039_seen=true; qb_permanent=1467700893010.547270:7:1:4:4:0::0:1:0::::::::::::::::::segments~1i@a&l@a&j_a&k_a&g_a&a_a&m@a&h_a&b_a&m@a::; x_ss002_variation=domesticpricechanges; x_dg004_variation=true; _ga=ga1.2.385925508.1467700934; x_qb_block=1; x_dg007_variation=true; qq_results_filter=total|false; _cs_id=317bd8ee-1afe-a06b-aec7-32eef762cb22.1467701049.8.1468047750.1468047641; sn.vi=vi||2d9b5ad8-d4ec-41aa-ad75-f835d3f1e56a; 45520235-vid=1713901327918342; arrcookie=d8bdc008a4607e6ff76c1bba4628b53b4e1fc75eb59a830e24f4200fde1db4aa; _qsst_s=1468047716143; qb_filter_ip_match=false; _qpagenum_parcel2go=0; _qsst=1468047717708; _cs_v=0; _cs_r=0; _cs_cvars=%7b%221%22%3a%5b%22page_type%22%2c%22listing%22%5d%2c%222%22%3a%5b%22breadcrumb%22%2c%22quick%20quote%22%5d%7d; sc.asp.net_sessionid=nqx1luablbghdftje5ox33ns; sc.status=8; 45520235-skey=6917772268547809234; humanclicksitecontainerid_45520235=standalone; asp.net_sessionid=uhem0dxwx5thnang4roq0hjz; __requestverificationtoken=89kopsfajfi0cfljnxsrs8fncykfuzkorkq3d3sgb3fjjg77gxebxg5go4ut_vqslakveooujzn70bnjnaxykjmuyc41; _cs_s=2; x_qtag_1892842=eyvparcel2go.com*1468047716147*idirect*results*quotes*.dest*kcol*+219@*a*qsc*q*j4*c*b4*c*p7*5-@1-*c*r*z*a*@2-*y*9-*@0-/*y*a1467700880903*b*c*a*@2-*y*9-*@0-/*y*a1467703616020*b*c*a*@2-*y*9-*@0-/*y*a1468042346549*b*c*a*@2-*y*9-*@0-/@4-*@6-*@7-*@5-*@7-*.p*+1*o23*f/@3-*y*a@1-*b*e*c*f*q*@0-/@4-*@6-*@7-*@5-*@7-*.p*+1*o23*f/@3-*y*q__v*z; qb_session=1:1:15:; ss_opts=r21:h&h|/kq:h&h|bdaw:b&b|bebn:d&d|bfc5:c&c|bglf:d&d|bitj:d&d|bj1c:e&e|bnmi:h&h|bqup:d&d|bqvc:d&d|_g:vxodoht&vxodoht&e&b; _gat=1; sn.ds=d||a");      $resultshtml =curlwrapper::sendrequest($jsonurl, 'https://.........?col=219&dest=219&p=1~23',      "post", $postdata, $headers);     $resultsjson = json_decode($resultshtml); ?> 

i have 3 url($jsonurl) , code 1 url data fatch using code. fetch url data same time. plz me..???


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -