Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Make Sub Request ????????

Make Sub Request ????????

Scheduled Pinned Locked Moved Web Development
questioncomhelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Feras Mazen Taleb
    wrote on last edited by
    #1

    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 ?

    S 1 Reply Last reply
    0
    • F Feras Mazen Taleb

      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 ?

      S Offline
      S Offline
      stevio
      wrote on last edited by
      #2

      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.

      F 1 Reply Last reply
      0
      • S stevio

        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.

        F Offline
        F Offline
        Feras Mazen Taleb
        wrote on last edited by
        #3

        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 ?

        N 1 Reply Last reply
        0
        • F Feras Mazen Taleb

          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 ?

          N Offline
          N Offline
          neilmajithia
          wrote on last edited by
          #4

          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?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups