Re: Curl output
| From: | kranthi | Date: | Fri, 02 Oct 2009 07:21:23 +0000 |
| Subject: | Re: Curl output | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298462@lists.php.net to get a copy of this message | ||
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.