php - curl request and wait for a response -
i'm trying send request website http://bookonline.saudiairlines.com via curl session-dependent. example is:
everything went except i'm receiving middle screen shows:
please wait ....
how can wait , actual results contains flight details.
thank you.
here code:
<?php // curl resource $curl = curl_init(); // set options - passing in useragent here curl_setopt_array($curl, array( curlopt_returntransfer => 1, curlopt_url => 'http://www.bookonline.saudiairlines.com/pl/saudiairlines/wds/override.action;jsessionid=rq42tndfnl295lg9szfph16pl881c9gqjvbpw7w8vgwdtpdmsdjf!-2104883082!632911924?pricing_type=c&b_date_1=201403230000&b_date_2=201403230000&b_location_1=dmm&language=gb&embedded_transaction=flexpriceravailability&wds_e_location_1_display=riyadh&wds_b_location_1_display=dammam&booking_flow=revenue&e_location_1=ruh&wds_tabs=online&site=bdxhbdxh&display_type=2&so_site_office_id=jedsv08aa&trip_type=o&external_id=dummy&office_id=jedsv08aa&commercial_fare_family_1=cffguest&commercial_fare_family_2=cffbus&commercial_fare_family_3=cfffirst&traveller_type_1=adt&calendar_0day=23&calendar_0monthyear=032014&cabin=e ', curlopt_useragent => 'codular sample curl request' )); // send request & save response $resp $resp = curl_exec($curl); echo $resp; // close request clear resources curl_close($curl); ?>
Comments
Post a Comment