libURL gone mad

Richard Gaskin ambassador at fourthworld.com
Fri Sep 2 13:15:39 EDT 2016


Phil Davis wrote:

 > Richard,
 > You could always write yourself a curl wrapper... just sayin'.

Good for OS X; doable on Linux if I wrap shell calls to wget instead 
(seems many Debian-based distros include wget but not curl by default); 
non-starter on Windows since I don't believe either is included by 
default, are they?

I believe that's why Charles went down the externals road with curl, to 
ensure its code is available.

When using wget from shell, in my earlier tests it seemed the overhead 
of establishing the shell session wound up making that about 20% slower 
than libURL.  Not the end of the world, but coupled with the simplicity 
of not having to rely on external components libURL is a better option 
for me if I can get it to run reliably.

And a hopeful follow-up on that:

I simplified my test case using Charles' recommended libURL mod.

At this time it seems I can hammer away at the button that calls my "get 
url..." script as much as I want and ultimately get one good result back.

Not quite as simple as having true blocking for GET and POST, but I'll 
take it.


Q for Charles:
For me the convenience of being able to deliver a true standalone, with 
no externals or other components, is very useful on this project.  I 
appreciate the new capabilities Charles is providing in v8.1, but for 
those projects where I only need simple GET and POST I'm hoping I'll be 
able to deliver true standalones that don't require that external - is 
that the case, Charles, or is libURL now fully dependent on the external?


Back to the main issue, since I'm seeing good results thus far in my 
testing (thanks again, Charles) I've submitted an enhancement request to 
have the function Charles suggested be added to libURL for those who may 
need it:
http://quality.livecode.com/show_bug.cgi?id=18318

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list