Put something into URL returns no error

Alex Tweedly alex at tweedly.net
Thu Dec 8 03:29:22 EST 2005


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.
i.e. don't switch off the router, don't disconnect the wire between the 
computer and the router, don't do anything directly visible to the 
computer - so that the error is that eventually the  tcp open attempt 
times out. (or maybe there's a dns failure first - does that get back to 
libURL or to the calling app ?)

(sorry, I'm not on a suitable broadband connection this week, so I can't 
try it myself)

-- 
Alex Tweedly       http://www.tweedly.net



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.11/191 - Release Date: 02/12/2005




More information about the use-livecode mailing list