php - Get content of page after redirects -
i trying parse webpage cant load web in php because page reloading maybe 3 times. tried curl show me empty result. thank you.
https://cestovnelistky.studentagency.sk/booking/from/praha/to/bratislava/tarif/regular/departure/20150511/retdep/20150511/return/false/ropen/false/credit/false/class/2?22#search-results
this seems work :
curl "https://cestovnelistky.studentagency.sk/booking/from/praha/to/bratislava/tarif/regular/departure/20150511/retdep/20150511/return/false/ropen/false/credit/false/class/2?0" -h "accept-encoding: gzip, deflate, sdch" -h "accept-language: en-us,en;q=0.8,fr;q=0.6" -h "user-agent: mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/42.0.2311.135 safari/537.36" -h "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -h "cache-control: max-age=0" -h "cookie: locale=sk; currency=eur; jsessionid=07311b3df5030445d6d5952d71ca6673; searchform-settings=""{\\""sp\\"":[{\\""f\\"":\\""praha\\"",\\""t\\"":\\""bratislava\\""}],\\""r\\"":false}""; __utmt=1; __utma=178078135.1790203919.1431363151.1431363151.1431363151.1; __utmb=178078135.3.10.1431363151; __utmc=178078135; __utmz=178078135.1431363151.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=178078135.1790203919.1431363151.1431363151.1431363151.1; __utmb=178078135.3.10.1431363151; __utmc=178078135; __utmz=178078135.1431363151.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)" -h "connection: keep-alive" --compressed
Comments
Post a Comment