Put something into URL returns no error
Dave Cragg
dcragg at lacscentre.co.uk
Thu Dec 8 03:44:28 EST 2005
On 8 Dec 2005, at 08:29, Alex Tweedly wrote:
> Dave Cragg wrote:
>
>>
>> On 8 Dec 2005, at 07:20, Thomas McCarthy wrote:
>>
>>>
>>> I'm updating a file on the web using a formula like this:
>>>
>>> put x into url ftp://name:pass@www.site.com/folder/the_file.txt
>>>
>>> It's working great. But when I tried it see what would happen if
>>> there was no internet connection--hoping there would be an error
>>> message-- the result was empty. How can we know if a "put" fails?
>>
>>
>> I see "invalid host address" in the result when I turn off the
>> internet connection, presumably as a result of a
>> hostNameToAddress lookup . If I change to a numerical IP address,
>> I see "error can't connect to host"
>>
>> This was a quick check on Mac OS X. I'll check on Windows in a
>> short while.
>
> Yes, but if you turn off the connection, then the computer knows
> (can tell directly) that it has no connection - that's the easy case
>
> If you can, also check what happens if you have a *network*
> connection, but no internet connection.
>
> e.g. if you're on broadband, disconnect the wire between the router
> and the wall socket.
But I don't need to get out of my seat to turn off the power. Thanks
for the heads up, Alex.
Anyway, I get the same result for the named IP (libUrl does do a
lookup). With a numerical IP, I get "eror socketTimeout"
Cheers
Dave
More information about the use-livecode
mailing list