Re: Origin issue?
Shanshui Liu <[email protected]>
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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