Last visit was: It is currently Thu Dec 05, 2024 12:03 pm


All times are UTC-05:00




Post new topic Reply to topic  [3 posts ] 
    Author Message
     Post subject:How to read data from server.
    PostPosted:Sun Oct 20, 2013 3:34 am 
     

    Joined:Tue Oct 15, 2013 11:09 pm
    Posts:18
    Since you guys seem fairly knowledgeable and since I have little to no knowledge of c++ programming:

    I feel almost stuck here trying to figure out how to read text from an external server and display it in Uplink.

    Essentially I want to send either get or post requests to my server, if GET than be able to to display the contents of the data into an Uplink EclRegisterButton or create_stextbox caption.

    I got kinda close using a library online but Uplink would always crash on the request.

    I was calling the request when I opened a page (the kind under the map) .

    How is this done, does Onlink do this?


    Top
    Offline  
     Post subject:Re: How to read data from server.
    PostPosted:Sun Oct 20, 2013 9:46 am 
    Literally Nine
    User avatar
     

    Joined:Tue Mar 01, 2005 9:00 am
    Posts:1263
    We use our own networking library at the present. There isn't a clean way to describe what we've done.

    But.

    Before we went and did that, I had an update notification thing for Onlink, back when releases were labeled like Beta4b. I did this by checking my server for a file using HttpGetFile in the tcp4u library. It's not a great solution if you plan to do much more than this, but it's a start if that's all you're planning.

    In all I don't suggest relying on tcp4u, I only mention it because it's already built into what you have.


    Top
    Offline  
     Post subject:Re: How to read data from server.
    PostPosted:Sun Oct 20, 2013 8:29 pm 
     

    Joined:Tue Oct 15, 2013 11:09 pm
    Posts:18
    Awesome, this pointed me in the right direction and I was able to send POST requests, and i am able to download a file from FTP which is good enough for anything I can think I need to do.

    I ended up using HINTERNET InternetOpen|InternetConnect|HttpOpenRequest|HttpSendRequest


    Top
    Offline  
    Display posts from previous: Sort by 
    Post new topic Reply to topic

      All times are UTC-05:00


      Who is online

      Users browsing this forum: No registered users and 1 guest


      You cannot post new topics in this forum
      You cannot reply to topics in this forum
      You cannot edit your posts in this forum
      You cannot delete your posts in this forum
      You cannot post attachments in this forum

      Search for:
      Jump to:  
      cron
      Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
      Theme created by Miah with assistance from hyprnova