curl-and-php
secure server problem
Date: Fri, 25 Jun 2004 12:21:40 +0530
Hi ,
I am sending parameters to one site through curl.
But that server is secure.They give me error "High security alert!!!you can
not download the dll".(I am sending paramertes to site which has dll file)
following is code I am using.
$host = "http://www.somesite.com/scripts/oneddlfile.dll";
$data =
"?deppoint=".$_POST[deppoint]."&arrpoint=".$_POST[arrpoint]."&month=".$_POST
[month]."&day=".$_POST[day]."&years=".$_POST[years]."&duration=".$_POST[dura
tion]."&flex=".$_POST[flex]."&NoAdults=".$_POST[NoAdults]."&Nochild=".$_POST
[Nochild]."&NoInfants=".$_POST[NoInfants]."&I1=".$_POST[I1]."&B3=".$_POST[B3
];
I tried following 3 options:
option 1)
$cpath = "/usr/bin/curl";
$result = exec ("'$cpath' -s -S -E '$key' -m 90 -d '$data' '$host'",
$retarr, $retnum);
option 2)
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL,$host);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec ($ch);
option 3)
exec("/usr/bin/curl -d \"".$data."\"
".$host,$returned_trans_array2,$max_lines);
please help me
Thanks
Amol
Received on 2004-06-25