cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl, absolute and relative references

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 17 Jun 2010 19:59:45 +0200 (CEST)

On Thu, 17 Jun 2010, Scott Haneda wrote:

> Is it possible in curl to request and http resource and have all internal
> references converted to absolute url's?
>
> For example: <img src="../../pic.jpg"> would become <img
> src="http://example.com/pic.jpg">

No. curl can get the HTML for you, it does nothing with the actual data
though. You probably instead want a tool like wget, pavuk or httrack that I
believe do that kind of operation.

-- 
  / 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 2010-06-17