Lid |
|
Ja , die heb ik doorgelezen.
Heb nu de volgende code
Ik vermoed dat het een cookie probleem is , weet niet precies hoe je cookies kunt gebruiken in curl
<?php
error_reporting(0);
import_request_variables("gP", "lab_");
$cURL = curl_init('https://booking.lionair.co.id/lionair/Schedule.asp');
$cookie = "booking.lionair.co";
$postdata = "RuteReturn=".$lab_RuteReturn."&RuteOneWay=".$lab_RuteOneWay."&Adult=".$lab_Adult."&Infant=".$lab_Infant."&TglOW=".$lab_TglOW."&TglRT=".$lab_TglRT."&RuteOneWay1=".$lab_RuteOneWay1."&Rute=".$lab_Rute."&RuteReturn1=".$lab_RuteReturn1."&RuteOW=".$lab_RuteOW."&RuteRT=".$lab_RuteRT."&Child=".$lab_Child."&C1=".$lab_C1."&C3=".$lab_C3."&B2=".$lab_B2."&B1=".$lab_B1;
curl_setopt($cURL, CURLOPT_REFERER, "https://booking.lionair.co.id/lionair/ListSched.asp");
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cURL, CURLOPT_POST, 1);
curl_setopt($cURL, CURLOPT_POSTFIELDS, $postdata);
curl_setopt($cURL, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($cURL, CURLOPT_HEADER, 1);
curl_setopt($cURL, CURLOPT_FAILONERROR, 1);
curl_setopt($cURL, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
$dump = curl_exec($cURL);
curl_close($cURL);
print $dump;
?>
<?php $cURL = curl_init('https://booking.lionair.co.id/lionair/Schedule.asp'); $cookie = "booking.lionair.co"; $postdata = "RuteReturn=".$lab_RuteReturn."&RuteOneWay=".$lab_RuteOneWay."&Adult=".$lab_Adult."&Infant=".$lab_Infant."&TglOW=".$lab_TglOW."&TglRT=".$lab_TglRT."&RuteOneWay1=".$lab_RuteOneWay1."&Rute=".$lab_Rute."&RuteReturn1=".$lab_RuteReturn1."&RuteOW=".$lab_RuteOW."&RuteRT=".$lab_RuteRT."&Child=".$lab_Child."&C1=".$lab_C1."&C3=".$lab_C3."&B2=".$lab_B2."&B1=".$lab_B1; curl_setopt($cURL, CURLOPT_REFERER, "https://booking.lionair.co.id/lionair/ListSched.asp"); curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1); curl_setopt($cURL, CURLOPT_POST, 1); curl_setopt($cURL, CURLOPT_POSTFIELDS, $postdata); curl_setopt($cURL, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($cURL, CURLOPT_HEADER, 1); curl_setopt($cURL, CURLOPT_FAILONERROR, 1); curl_setopt($cURL, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"); $dump = curl_exec($cURL); curl_close($cURL); ?>
|