curl-and-php
Re: Origin issue?
Date: Tue, 16 Nov 2010 07:46:38 +0800
Hi Robin,
It might not work even if you rewrite those URLs to absolute paths with the
correct hostname as the client using your cURL app is not authenticated to
view those images (I'm assuming that the app is outputing HTML). You would
probably need to fetch those images to your server first then rewrite those
image URLs to point to them instead using str_replace or preg_replace.
With regards,
Liu Shan Shui
http://lx.sg/
"Life would be much easier if I had the source code." - Anonymous
On Tue, Nov 16, 2010 at 1:26 AM, Robin Diederen <diederen_at_nlcom.nl> wrote:
> Hello all,
>
>
>
> I’m quite new to PHP-cURL and fiddling around a bit. I need cURL for
> performing an automated login to Exchange Webaccess (2007). I’ve managed to
> build a PHP script which can do this and this works fine, except for one
> thing.
>
>
>
> After logging in, the OWA tries to fetch some images and display those.
> Those images are referenced through a relative path. As the originating URL
> (myserver/curlscript.php for example) differs from the actual OWA url, this
> goes wrong.
>
>
> So I’m wondering how to fix this? Can I somehow configure cURL to change my
> origin?
>
>
>
> Best, Robin
>
>
>
>
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2010-11-16