Heres the thing I need this page to be given to me in Code format http://proline.olgc.ca/prolineEvents.do $page = file_get_contents("http://proline.olgc.ca/prolineEvents.do"); The thing is I need Results not todays games.. So if you click on RESULTS you will be able to see all the results, and when I press view code it gives me what I need. So I tried using CURL to try and click that button, tried headers POST /prolineEvents.do selectedSportId=all&selectedTimeTab=results&language= Just write me a snippet to get the results page. Thanks
<?php $curl = curl_init( ); curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $curl, CURLOPT_POST, 1 ); curl_setopt( $curl, CURLOPT_POSTFIELDS, "selectedTimeTab=results&selectedSportId=all" ); curl_setopt( $curl, CURLOPT_URL, "http://proline.olgc.ca/prolineEvents.do" ); echo curl_exec( $curl ); ?> PHP: Not sure what part of the page you want ...