The Daily Click ::. Forums ::. Klik Coding Help ::. Connect to website to retrieve some text
 

Post Reply  Post Oekaki 
 

Posted By Message

Johnny Look

One Happy Dude

Registered
  14/05/2006
Points
  2942

VIP Member
1st February, 2009 at 17:43:37 -

So I want my game to connect my website to retrieve the whole code of a page located in my server.
All the page contains is my dns address so that my mmo game can connect to that address, so that in case the primary server goes down I can change to another one without forcing my users to download a new version of the game. In that case all I would have to do is modify the address in that page.


 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
1st February, 2009 at 17:48:56 -

You can do that using mooSock. Have a look in the articles section on this site if you need the actual event code.

 
n/a

Johnny Look

One Happy Dude

Registered
  14/05/2006
Points
  2942

VIP Member
1st February, 2009 at 19:00:00 -

Well I managed to access the page plus the code, the problem is I want to get rid of the headers so that I only get the last line.

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
1st February, 2009 at 19:07:17 -

you use string parser and rich text object.

do you know how to use delimeters? you have to parse through it to the part you actually want.

copy pasta what moosock is returning you and then let me know what part you actually want.

Edited by Cecilectomy

 
n/a

Johnny Look

One Happy Dude

Registered
  14/05/2006
Points
  2942

VIP Member
5th February, 2009 at 20:43:36 -

thanks got it working

 
n/a
   

Post Reply



 



Advertisement

Worth A Click