I have a shell script that runs a daily job and uses wget to kick off a URL request as part of that job. My question is, given the following output, does wget consider the HTTP request successful? If it does not, would putting in -tries=10 force wget to keep trying 10 times until it gets a 200 HTTP response code? In general, the HTTP request works fine but I have seen instances like this before sporadically:
If wget does consider this successful, is the only option to grep the outputed index.html and look for a 200 response code and I don't see it keep trying via a shell script while loop?
Thanks,
The Dan
Code:
--18:49:42-- http://www.mysite.com/xxx.cfm
=> `index.html'
Resolving www.mysite.com... 255.255.255.255
Connecting to www.mysite.com|255.255.255.255|:80... connected.
HTTP request sent, awaiting response... 502 Proxy Error
18:54:42 ERROR 502: Proxy Error.
If wget does consider this successful, is the only option to grep the outputed index.html and look for a 200 response code and I don't see it keep trying via a shell script while loop?
Thanks,
The Dan