cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET