HTTP Get is not working stable after Netboot I am booting a Netboot Image with a MacMini 5.1, after the system is up a shell script calls a server via curl.

At the moment the Internet connection is up and running. I verify that doing a ping to the same server before using curl.

Every now and then it is not working properly. When it is not working the http get request never reaches the server. Since the ping worked before i think it might be a DNS problem.

If i use curl "manually" 2 time working 3rd time not... Its not easy to reproduce this error...

So i tried to add the IP to /etc/hosts and it is still not working properly every time.

What might cause this problem ?
Check the return value from curl. If there are problems you should get a non zero value. Something like this may work:

#!/bin/sh
echo trying download . . .
until curl http://example.com/test.file ; do {
    echo something went wrong. retrying download . . .
}; done
echo file downloaded.