curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "a=a&b=b");
the code above is doing for first request. how about the second request? For example,
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.abc.com');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$res = curl_exec($ch);
curl_close($ch);
the www.abc.com will POST (not redirect) to another server call www.def.com. and then www.def.com will back to ww.abc.com and come back to my application.
My problem now is the curl never return back to my application. I think some connection loss in between.
Please help....
Thanks.