且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将变量从 C# Windows 窗体应用程序传递到 PHP Web 服务

更新时间:2023-10-21 13:53:10

您只是传递字面硬编码值username"和password",而不是变量的内容.

You're just passing the literal hard-coded values "username" and "password", not the contents of the variables.

尝试将变量连接到 URL 中:

Try concatenating the variables into the URL instead:

WebRequest request = WebRequest.Create("https://mydomain.com.au/LoginVerification.php?username=" + username + "&password=" + password + "&Token=" + Token);