> I found the problem! > It seems that the url is resolved to two ip-addresses: 104.87.22.147 and > 104.16.32.34. > 104.87.22.147 causes the 403 Forbidden error but 104.16.32.34 answers > with 200 Ok. > Now I changed the script 'begging' the server 20 times until I get 200 ok. > Anyway thanks > Gooly
You are welcome. You could 'fix' the IP address by adding it to the etc/hosts file (search the internet for the exact location on your OS). That circumvents the DNS lookup. Tim
