Michael Day wrote: > Hi Daniel, > >> I'm sure other people have used curl in a libxml2 context, their >> feedback >> would be welcome. > > We use curl with libxml2 in Prince by specifying our own entity > loader. One downside of this approach is that we cannot fully support > the "referer" HTTP header, as the entity loader is just given a URL to > load but is not given the URL of the referring document. I guess that > using curl as an IO handler directly within libxml2 would avoid this > issue? > > Best regards, > > Michael > yes, i believe this would avoid this issue. Acc'd to http://curl.haxx.se/libcurl/c/curl_easy_setopt.html, you would use CURLOPT_REFERER
jr _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
