Make Sub Request ????????
-
I order some info from the user Like : username & Password And when the user click a button I need to make a "Sub" request to another page in other site like thie "www.KOKO.com?username=xxx&Password=xxx" and the above link will return a result "Yes" Or "NO" how can i read this result in the button handler . Notice : you may tell me that this way is very strange or silly but the problem is that the site "KOKO" That I interact with order me to follow this way because they don't have WebService To be used :laugh: :laugh: :laugh: :laugh:
You have To Search About The Truth Of Your Life Why Are you Here In Life ?
-
I order some info from the user Like : username & Password And when the user click a button I need to make a "Sub" request to another page in other site like thie "www.KOKO.com?username=xxx&Password=xxx" and the above link will return a result "Yes" Or "NO" how can i read this result in the button handler . Notice : you may tell me that this way is very strange or silly but the problem is that the site "KOKO" That I interact with order me to follow this way because they don't have WebService To be used :laugh: :laugh: :laugh: :laugh:
You have To Search About The Truth Of Your Life Why Are you Here In Life ?
You may find that users will be rather surprised if you start sending their usernames and passwords to another domain (and with good reason). The fact that the other site doesn't give a mechanism to do this also suggests that it may not be a good idea. If you have control over the koko site, you'd probably be better off implementing a robust authentication system (or hosting the application on that domain/machine). If you do that request from the client, what you'd be doing is handing off authentication control to the client, which means it's very insecure (ie. you trust the client to send the request to the right place, and you trust that the "Yes" answer isn't just made up by modifying the client script). Really don't do this. To do it on the server side would allow some control over the authentication, but the method to do it would depend on what languages and technologies you use on the server side. Essentially all you'd be doing is a GET request with the parameters as sent from the user, and checking the response for Yes/No.
-
You may find that users will be rather surprised if you start sending their usernames and passwords to another domain (and with good reason). The fact that the other site doesn't give a mechanism to do this also suggests that it may not be a good idea. If you have control over the koko site, you'd probably be better off implementing a robust authentication system (or hosting the application on that domain/machine). If you do that request from the client, what you'd be doing is handing off authentication control to the client, which means it's very insecure (ie. you trust the client to send the request to the right place, and you trust that the "Yes" answer isn't just made up by modifying the client script). Really don't do this. To do it on the server side would allow some control over the authentication, but the method to do it would depend on what languages and technologies you use on the server side. Essentially all you'd be doing is a GET request with the parameters as sent from the user, and checking the response for Yes/No.
Thanks A lot , I know some of what you said But the problem is that I don't have Any control in KOKO Site . They told me to use this URL To InterAct With Them " www.koko.com?username=xxx&password=xxx " And the koko site will return 1 for yes or 0 for No (I know it is very silly but beleive me there is no way :(( :(( ) Ok the returned value will be in the response so cold you explain how can i use the GET Request in Small Code snippet
You have To Search About The Truth Of Your Life Why Are you Here In Life ?
-
Thanks A lot , I know some of what you said But the problem is that I don't have Any control in KOKO Site . They told me to use this URL To InterAct With Them " www.koko.com?username=xxx&password=xxx " And the koko site will return 1 for yes or 0 for No (I know it is very silly but beleive me there is no way :(( :(( ) Ok the returned value will be in the response so cold you explain how can i use the GET Request in Small Code snippet
You have To Search About The Truth Of Your Life Why Are you Here In Life ?
Not really sure how you are making the request and getting a result. Are you opening the site in a new window with the values in the query string, and then waiting for the new page to post back to your site with a query string with a yes or no? that would not only be very insecure, i have no idea what you would acheive from it. What do you do with the other site once it is signed in?