Terry - 2006-07-22

After installing RexxCurl, I tried the sample programs.
Each one worked once, and failed thereafter.
For example, successive runs of httppost

C:\Program Files\Mark Hessling\Rexx Extensions\RexxCURL>rexxcurl demo\httppost.rexx email pwd
The supplied email address is invalid

C:\Program Files\Mark Hessling\Rexx Extensions\RexxCURL>rexxcurl demo\httppost.rexx email pwd

C:\Program Files\Mark Hessling\Rexx Extensions\RexxCURL>rexxcurl demo\httppost.rexx email pwd
The supplied email address is invalid

C:\Program Files\Mark Hessling\Rexx Extensions\RexxCURL>rexxcurl demo\httppost.rexx email pwd

Notice how the second run did not return an error?

These thre riuns did not return any error message:
C:\Program Files\Mark Hessling\Rexx Extensions\RexxCURL>rexxcurl demo\mirror.rexx ftp://verybadurl name passwd

C:\Program Files\Mark Hessling\Rexx Extensions\RexxCURL>rexxcurl demo\mirror.rexx ftp://very.bad.com/ name passwd

C:\Program Files\Mark Hessling\Rexx Extensions\RexxCURL>rexxcurl demo\mirror.rexx very.bad.example.com name passwd

The test program seems to have an elementary error:
curl = CURLInit()
If curl \= '' Then
   Do
      Call CURLSetOpt 'URL', "http://www.rexx.org/"

Shouldn't that be
      Call CURLSetOpt curl, 'URL', "http://www.rexx.org/"

I have persevered for a few hours, but this looks unworkable.  1.4 under Windows 2000 SP4