dom - Scraping website post data with PHP -


I have a website that wants to scrape www.tiketux.com and I have to fill out this form so that I I can get the data. Tiketux.com / book / pilhjadwal

I have received this data like this

In that page we try to use the DOM and CRL But this data is not loaded, how can someone get me that data?

Thanks

  $ options = array ('http' = & Array ('Header' = & gt; "Content-Type: Text / html; Charset = UTF-8 \ r \ n", 'Method' = & gt; 'POST', 'Content' = & gt; http_build_query ([]),)); $ Context = stream_context_create ($ option); $ result = file_get_contents ('https://www.tiketux.com/book/pilihjadwal/post?agen=CPG&keberangkatan=0004&tujuan=153&jumpenumpang=1&datepicker=15%2F10%2F2014&idJurusan=153&katasall = Bandung ', false, $ reference); $ Doc = new DOMDocument (); @ $ Doctor & gt; loadHTML ($ result);   

DOM-document will be manual from $ doc URL:

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -