Does your process have access to the web

Edit Package perl-LWP-Online

This module attempts to answer, as accurately as it can, one of the
nastiest technical questions there is.

*Am I on the internet?*

The answer is useful in a wide range of decisions. For example...

_Should my test scripts run the online portion of the tests or just skip
them?_

_Do I try to fetch fresh data from the server?_

_If my request to the server breaks, is it because I'm offline, or because
the server is offline?_

And so on, and so forth.

But a host of networking and security issues make this problem very
difficult. There are firewalls, proxies (both well behaved and badly
behaved). We might not have DNS. We might not have a network card at all!

You might have network access, but only to a for-money wireless network
that responds to ever HTTP request with a page asking you to enter your
credit card details for paid access. Which means you don't "REALLY" have
access.

The mere nature of the question makes it practically unsolvable.

But with the answer being so useful, and the only other alternative being
to ask the user "duh... are you online?" (when you might not have a user at
all) it's my gut feeling that it is worthwhile at least making an attempt
to solve the problem, if only in a limited way.

Refresh
Refresh
Source Files
Filename Size Changed
LWP-Online-1.07.tar.gz 0000025783 25.2 KB
perl-LWP-Online.changes 0000000175 175 Bytes
perl-LWP-Online.spec 0000003119 3.05 KB
Revision 1 (latest revision is 11)
Sascha Peilicke's avatar Sascha Peilicke (saschpe) accepted request 66740 from Stephan Kulow's avatar Stephan Kulow (coolo) (revision 1)
Accepted submit request 66740 from user babelworx
Comments 0
openSUSE Build Service is sponsored by