Ferrous Moon http://www.ferrousmoon.com:80/forums/ |
|
How to read data from server. http://www.ferrousmoon.com:80/forums/viewtopic.php?f=45&t=2885 |
Page 1 of 1 |
Author: | someguy [Sun Oct 20, 2013 3:34 am ] |
Post subject: | How to read data from server. |
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? |
Author: | Miah [Sun Oct 20, 2013 9:46 am ] |
Post subject: | Re: How to read data from server. |
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. |
Author: | someguy [Sun Oct 20, 2013 8:29 pm ] |
Post subject: | Re: How to read data from server. |
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 |
Page 1 of 1 | All times are UTC-05:00 |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |