cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: redirect troubles...

From: Laurie Barker <laurie_at_oneuponedown.co.uk>
Date: Wed, 21 Jan 2004 11:13:47 +0000

On 21/1/04 08:36 you wrote:

>> You will notice that I get the Paypal page but all the image links are
>> broken (because Paypal uses relative URL's in it's HTML).
>
> That's because you request the page from paypal and display it. curl does no
> link conversions. If you really want to do it like this, you need to translate
> all links in the downloaded HTML to point to the absolute ones on paypal
> instead.

Or a Quick fix would be to output <base href="http://site domain"> prior to
outputting any curled content.

<base href="http://www.paypal.com/">
<?
// CURL CODE TO URL "http://www.paypal.com"
// PRINT CURLED CONTENT
?>

Hope this helps

--
OneUpOneDown Creative Solutions Ltd
--
Laurie Barker
--
T: +44 (0)20 8527 4440
--
F: +44 (0)20 8527 4527
--
E: laurie-barker_at_oneuponedown.co.uk
--
W: http://www.oneuponedown.co.uk
--
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-21