อันนี้คือรับค่าจากการ post จาก form login ของเรา
'ctl00$ContentPlaceHolder1$txtName'=>urlencode($_POST["ctl00\$ContentPlaceHolder1\$txtName"]),
'ctl00$ContentPlaceHolder1$txtPass'=>urlencode($_POST["ctl00\$ContentPlaceHolder1\$txtPass"]),
อันนี้กรณี ใส่ user กับ pass ไว้เลย คือไม่ต้องใช้ form login สั่ง run script ก็ทำงานได้เลย ครับ
'ctl00$ContentPlaceHolder1$txtName'=>urlencode("myuser"),
'ctl00$ContentPlaceHolder1$txtPass'=>urlencode("mypass"),
ผมหา asp.net ไม่เจออ่ะครับ รบกวนด้วยครับ ฮือๆๆๆ หาเจอแล้วก็ยังไม่ได้อ่ะครับ
มันขึ้น "The state information is invalid for this page and might be corrupted." รบกวนใครมีลิงค์บอกด้วยนะครับ
ขอบคุณครับ
ใช้ curl php เข้าระบบ login asp.net แล้วมันขึ้นตามข้างล่างนนี้นะครับ
Server Error in '/' Application.
--------------------------------------------------------------------------------
Invalid character in a Base-64 string.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Invalid character in a Base-64 string.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[FormatException: Invalid character in a Base-64 string.]
System.Convert.FromBase64String(String s) +0
System.Web.UI.LosFormatter.Deserialize(String input) +25
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +101