cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl, absolute and relative references

From: Scott Haneda <talklists_at_newgeo.com>
Date: Thu, 17 Jun 2010 14:24:38 -0700

On Jun 17, 2010, at 10:59 AM, Daniel Stenberg wrote:

> 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.

Thanks Daniel,
I built wget, since it does not come with Mac OS X for some reason, and I have never needed it, as curl always suits my needs nicely. wget is performing this for me perfectly though. I looked at 'pavuk', and all I can say is wow!, I thought curl has significant options. 'pavuk' needs a man page to explain the man page :)

Thanks again for the suggestion and getting me on the correct track. I would buy you a drink, instead I will make a donation to your project. Thank you again.

-- 
Scott * If you contact me off list replace talklists@ with scott@ * 
-------------------------------------------------------------------
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