curlVia POSTve set kullandığımda CURLOPT_POSTFIELD, urlencodeya da herhangi bir özel format gerekir mi?
örneğin: 2 alan göndermek istersem, ilk ve son:
first=John&last=Smith
curl ile kullanılması gereken tam kod / format nedir?
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$reply=curl_exec($ch);
curl_close($ch);
http_build_query($data)beri&varsayılan ayırıcı olduğunu.