hello,
Inside an Applescript I have a shell script
do shell script "curl -X POST -H " & CONTTYP & " -c " & COOKIES & " 'http://" & IPLB & "/authenticate?username=" & USER & "&password=" & MDP & "'"
where IPLB variable is an IP address like this “192.168.1.1”
If IPLB is the good IP, that works fine and fast enough.
When the given IPLB is wrong, the shell command tries 75 times to connect in vain at the address and it takes a lot of time (about 1’30") before it returns curl errors 6 and 7 to handle.
During this time we could think that the applet is down because it doesn’t respond.
Is there a way to get a fast answer that the IP address is not valid?
Thanks!