Re: Curl output
| From: | Ashley Sheridan | Date: | Fri, 02 Oct 2009 09:20:15 +0000 |
| Subject: | Re: Curl output | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298471@lists.php.net to get a copy of this message | ||
On Fri, 2009-10-02 at 12:51 +0530, kranthi wrote:
> using the <base tag is a solution to your problem if the links are relative..
> http://www.w3schools.com/TAGS/tag_base.asp
> but I am not sure if base tag works outside <html></html>....
>
> try... <base href="URL"></base> before curl_init()
> where URL is parsed using PHP's parse_url() function on
> http://example.com
>
> in either case if there are any external js/css files cURL wont fetch
> external files(and if they are internal/inline your browser should
> display them already).. your browser will have to fetch them for you,
> net console of firebug will be helpful in that case.
>
Some browser security settings may not allow you to run Javascript code
that exists on another server though. The <base> tag can be used to
reference the external CSS and Javascript, but watch out for security
settings on client agents.
Thanks,
Ash
http://www.ashleysheridan.co.uk