cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to retain original URL in links in web pages downloaded with curl.exe?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 4 Nov 2009 10:59:22 +0100 (CET)

On Tue, 3 Nov 2009, code writer wrote:

> How can I get curl.exe to write the original links unchanged in the html
> written to my hard drive?

curl writes the HTML exactly as it is served by the server. The problem is
that you cannot follow such links in case they are relative.

To convert the links to work after download, you need a tool that does such a
job so possibly you'd be better off using wget or similar tool rather than
curl.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-04