Hi Jacque, You can use tsNet without libURL by using tsNet functions (tsNetGet, tsNetPost, ...) rather than the libURL syntax (get URL, put URL, ...).
tsNet includes a libURL wrapper so that if you choose to use libURL commands and tsNet is included then libURL will perform the requests using tsNet instead of its own internal methods. However, you are also free to not include libURL and just use tsNet by itself. Whether you are using tsNet or libUrl, you can get the "previous request not completed" error if you are not using pro features and you are performing synchronous transfers. The "non-pro" version of tsNet acts the same as libURL by only allowing one synchronous request at a time (the pro version of tsNet allows multiple synchronous requests at the same time). In order to fix this, you can use tsNet's asynchronous commands (e.g. tsNetGet instead of tsNetGetSync, tsNetPost instead of tsNetPostSync, ...) or libURL's "load URL" command. The "load URL" command only support HTTP GET requests which means that if you need to use other types of requests (e.g. POST) then use the tsNet functions directly. The tsNetLibUrlReuseConnection command is used to control whether or not your application will try to re-use an open connection to perform another request against the same server or whether it will open a completely new connection each time. You will still experience the "previous request not completed" if you try to make two synchronous requests against the same server at the same time regardless of this setting. Hope that helps, Charles > On 11 Oct 2021, at 4:02 am, J. Landman Gay via use-livecode > <use-livecode@lists.runrev.com> wrote: > > I'm sure it's coming from libURL. TSNet adds functionality to libURL and > they work together. As I understand it, you can't use TSNet alone, it needs > libURL. > > https://www.mail-archive.com/use-livecode@lists.runrev.com/msg85062.html > > Also: > "So include libUrl and you get normal libUrl; include libUrl and tsNet and > you get libUrl driven by tsNet; include neither and you get the in-engine > implementation." > https://www.mail-archive.com/use-livecode@lists.runrev.com/msg106501.html > > Because TSNet allows me to set multiple connections, I wonder if that would > solve the problem. I'm too close to deadline to have time to tinker too much. > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com >> On October 9, 2021 10:34:05 PM Tom Glod via use-livecode >> <use-livecode@lists.runrev.com> wrote: >> Hhhmm Hi Jacquelinee, .... which library are you using to send the >> requests? Because that sounds like an error from liburl, and it describes >> the limitation of the library. I could be wrong, but when using tsnet in >> async mode, that error would not be triggered by the engine. >> Hope that helps. >> On Sat, Oct 9, 2021 at 3:58 PM J. Landman Gay via use-livecode < >> use-livecode@lists.runrev.com> wrote: >>> When sending several requests to a server, I get "Previous request not >>> completed" a lot. If I >>> set tsNetLibUrlReuseConnection to false, will that prevent it? Are there >>> any down sides? >>> -- >>> Jacqueline Landman Gay | jac...@hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> -- >> Tom Glod >> Founder & Developer >> MakeShyft R.D.A (www.makeshyft.com) >> Mobile:647.562.9411 >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode