I am using a script to pull some XML data to the URL required for authentication using WGET.
In doing so, my script generates the following output for each URL (IP addresses and hostnames changed to protect those responsible):
> Resolving host.name.com... 127.0.0.1 > Connecting to host.name.com|127.0.0.1|:80... connected. > HTTP request sent, awaiting response... 401 Access denied > Connecting to host.name.com|127.0.0.1|:80... connected. > HTTP request sent, awaiting response... 401 Unauthorized > Reusing existing connection to host.name.com:80. > HTTP request sent, awaiting response... 200 OK
Why does WGET complain that access to the URL failed twice before successfully connecting? Is there a way to close it or make it connect correctly on the first try?
For reference, here is the line I use to call WGET:
wget --http-user=USERNAME --password=PASSWORD -O file.xml http:
source share