Discussion:
need help on downloading xml file
(too old to reply)
Jerome Yanga
2018-06-07 18:07:27 UTC
Permalink
Mike,

The XML file name in the URL provided changes from time to time as well as
the hash prefixing it. Please see the URL below for the XML file for today.

https://download.microsoft.com/download/0/1/8/018E208D-54F8-44CD-AA26-CD7BC9524A8C/PublicIPs_20180605.xml

As Dod had suggested, I need to parse the page for the XML file URL
(Thanks, Dod). This was my plan B. Please see the one liner below.

curl -sS https://www.microsoft.com/en-us/download/confirmation.aspx?id=41653
--insecure | grep downloadretry | awk '{print $17}' | cut -f2 -d'"'

I was hoping that there is an argument in curl that I can use so that I do
not have to parse the page. (...still hoping) :)

Regards,
j
I have been trying to download the xml file from the site below.
https://www.microsoft.com/en-us/download/confirmation.aspx?id=41653
Notice near the beginning of the page, "If your download does not start
after 30 seconds, click here to download manually." Curl downloads that
link for me with no problem, didn't need any command-line arguments or
anything. You'll need to be more specific about what exactly the problem is
that you're having.
-mn
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Dod
2018-06-06 18:46:20 UTC
Permalink
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html

Loading...