Net Connection Detection and File Download?

BlitzMax Forums/BlitzMax Programming/Net Connection Detection and File Download?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

1) Is there a way to detect if a net connection is available without actually trying to use it? IE: I want to know if an internet connection is available without pinging a site or anything else which would trigger a firewall. If there is no connection available, I don't want to do a thing.

2) How would I go about downloading a file from a website via http in BMax? Opening a stream and reading bytes seems too simple, and probably doesn't account for lag, site failures, a lost connection, etc. I don't want to corrupt the game every time something goes wrong, so what exactly must I and can I do to make this "correct"?