Simple Game Server -- request for help

Alex Tweedly alex at tweedly.net
Mon May 30 18:58:59 EDT 2011


On 30/05/2011 00:36, Björnke von Gierke wrote:
> One thing to note is that libURL is really bad with repeated request, it just returns "request already loading" or similar, and there's no easy way to just force it to get the url instead of being annoying. So in an action game or chat environment, on the client side, you most likely need to use something else. That could mean making your own (basic) http code, or using curl (from the shell).
>

Can't you avoid that problem by using "unload URL" before the next 
(repeated) request for the same URL ?
     (It seems that way from simple testing, but I wouldn't swear it 
works in all cases).

> put  "1" && URL ("http://www.tweedly.org/addone.irev") after msg
> load URL ("http://www.tweedly.org/addone.irev")
> put "2" &&  URL ("http://www.tweedly.org/addone.irev") after msg
> put "3" &&  URL ("http://www.tweedly.org/addone.irev") after msg
>
> put "::" & it &&CR && the result after msg
fails, but adding the appropriate "unload" after the load makes it OK.


It should also work by adding a "nocache" header to the web page, but I 
haven't tested that.

- Alex.




More information about the use-livecode mailing list