$5 sent by paypal to first one to give me code for this

Discussion in 'PHP' started by Tom_e_rock, Oct 22, 2007.

  1. #1
    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
     
    Tom_e_rock, Oct 22, 2007 IP
  2. Tom_e_rock

    Tom_e_rock Peon

    Messages:
    428
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    come on someone!
     
    Tom_e_rock, Oct 23, 2007 IP
  3. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #3
    
    <?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 ...
     
    krakjoe, Oct 23, 2007 IP
  4. Tom_e_rock

    Tom_e_rock Peon

    Messages:
    428
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    perfect!! genius genious. pmed you
     
    Tom_e_rock, Oct 23, 2007 IP