cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: curl with the follow re-directs option.....

From: HART, CHRISTOPHER T <christopher.t.hart_at_bankofamerica.com>
Date: Wed, 27 Oct 2004 16:45:03 -0400

The URL you're requesting returns HTML with relative paths. As a result, if you open the resulting output in a browser, it won't know where to go for the images or stylesheets. You could try parsing the HTML after you run curl to try to replace relative paths with the correct absolute paths. However, if you're goal is to have everything to display the page local, you would need to also instruct curl to download all those supporting files (in which case you could recreate the pathing locally to get the page to display correctly).
 
Chris

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se [mailto:curl-users-bounces_at_cool.haxx.se]On Behalf Of Dutcher, John
Sent: Wednesday, October 27, 2004 4:29 PM
To: 'curl-users_at_cool.haxx.se'
Subject: curl with the follow re-directs option.....

When the -L is combined with the -O option a particular
page is indeed located and saved via redirection with this
command----> curl -L -O epaces.html https://www.emedny.org/epaces
 
However epaces.html doesn't display in a browser the same as if retrieved by the
browser itself.......namely no .gifs and coloring are present.
 
Is this as expected ??
 
Received on 2004-10-27