curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: need help on downloading xml file

From: Dod <dodfr_at_yahoo.com>
Date: Wed, 6 Jun 2018 20:46:20 +0200
Re: need help on downloading xml file Hello Jerome,

you cannot do it this way as this is html page and the final XML file link is inside the HTML code :

for example here :

<td class="file-link"><a href="https://download.microsoft.com/download/0/1/8/018E208D-54F8-44CD-AA26-CD7BC9524A8C/PublicIPs_20180605.xml"><span class="loc" locid="b9cd6c93-1571-f3e9-5a11-d35e3d5b5cad" srcid="b9cd6c93-1571-f3e9-5a11-d35e3d5b5cad">Click here</span></a></td><td class="file-size">89 KB</td>

so you'll have to first curl the main page, then SED to extract the final link then re-CURL it (may be save cookie content and reuse it in second curl call).

regards.

Wednesday, June 6, 2018, 6:34:55 PM, you wrote:


Hi!

I have been trying to download the xml file from the site below.

https://www.microsoft.com/en-us/download/confirmation.aspx?id=41653

Help.

Regards,
j


                      mailto:dodfr@yahoo.com

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-06-06