[Remops] Oops! Small problem!

Steve Crook steve at mixmin.net
Sun Oct 26 16:28:23 GMT 2014


On Sat, Oct 25, 2014 at 01:47:28PM -0600, Richard Christman wrote:
> 
> Ok, I tried your patch. Your code was good. Here's the error:
> Error: [173992]
> http://raw.githubusercontent.com/remops/allpingers/master/allpingers.txt:
> URL download error: -2146697210

Thanks, the error is shown as a signed int when it's really unsigned,
making it: 0x800C0006.  This is documented as: INET_E_OBJECT_NOT_FOUND,
dispite the documentation for URLDownloadToFile not listing that as a
possible return code. Hey ho, it's all good fun!

It's possible this is as simple as changing the DEFAULT_ALLPINGERSURL in
config.h to "https://" instead of "http://".  Would you mind giving it a
try.  I'm guessing we'll get a new, more meaningful error code.  :)

> How odd! Does this https URL download ok on linux? On Jeremy's
> 'compile mix 3.0.3e for linux' page he gives the user instructions on
> how they can use curl to get pages. In the linux portion of the
> function I see comments regarding CURL.
The curl and wget options both call external programs that understand
https.  With the incorrect protocol specified on DEFAULT_ALLPINGERSURL,
they would probably both fail, just like URLDownloadToFile().

> I hope this helps, but the actual error number appears not helpful.
> I'll try anything you want.

P.S. Thanks for pointing out my missing semicolons, I've corrected the
code now.

Best wishes,
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.mixmin.net/pipermail/remops/attachments/20141026/df70cad1/attachment.sig>


More information about the Remops mailing list