ผมจะล็อกอิน เข้าบอร์ด SMF โดยใช้ php cUrl
header ที่ส่งไป มันเป็นแบบนี้ครับ ใช้ liveheader firefox addon ครับ
user=test&passwrd=&cookielength=-1&hash_passwrd=d31d0561169a290692d9ee2c26c5ee36a2fc2a38
แต่ผมลองส่งไปแบบนี้ครับ
$url2 = "http://url.com/index.php?action=login2";
$post2="user=test&passwrd=&cookielength=-1&hash_passwrd=d31d0561169a290692d9ee2c26c5ee36a2fc2a38";
$ch2 = curl_init($url2);
curl_setopt($ch2, CURLOPT_POST, 1);
curl_setopt($ch2, CURLOPT_POSTFIELDS, $post2);
curl_setopt($ch2, CURLOPT_COOKIEJAR, "file.txt");
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1);
curl_exec($ch2)
มันแสดงออกมาบอกว่า password ไม่ถูกต้อง
ต้องเพิ่มโค๊ดดะไนเพิ่มเข้าไปมั๊ยครับ ลองแก้มั่วๆ หาจากกูเกิ้ลแล้วก็ไม่ได้
รบกวนด้วยครับ
