<form method="post" action="update-cart.php?action=do-update… name="upgrade" class="upgrade">
<input type="hidden" id="updatecart" name="updatecart" value="35b35rt45" />
<input type="hidden" name="http_referer" value="/cart/update-cart.php" />
<p><input id="upgrade" class="button" type="submit" value="Upgrade by click here" name="upgrade" /></form>
I have tried it , but no result : -
$urlto=('mysite.com');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $urlto);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"upgrade=Upgrade by click here");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch,CURLOPT_RETURNTRANSFER…
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt($ch, CURLOPT_COOKIEJAR, "COOKIE.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "COOKIE.txt");
$buffer = curl_exec($ch);
Can someone tell me that , What is the correct postfields ? please


