How to pass variables from C# Windows Form Application to PHP Web-Service

前端 未结 1 1036
挽巷
挽巷 2021-01-28 07:37

I have been battling a few days to pass variables from C# Windows Form Application to a PHP Web-Service. After numerous tests I concluded that the variables from the Windows For

相关标签:
1条回答
  • 2021-01-28 07:55

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

    Try concatenating the variables into the URL instead:

    WebRequest request = WebRequest.Create("https://mydomain.com.au/LoginVerification.php?username=" + username + "&password=" + password + "&Token=" + Token);
    
    0 讨论(0)
提交回复
热议问题