UniFone
UniFone
managed to get the pdf going, also fixed the issue with If-Modified-Since:. still working out how to paste code on here. Goto https://github.com/unifonenz/xero-api for more info.
not sure if i would put curl_setopt($ch, CURLINFO_HEADER, 1); as it will display the headers when returned, you just need curl_setopt($ch, CURLOPT_HTTPHEADER, array("If-Modified-Since: $modified_after"));
i also have never heard of CURLINFO_HEADER, did you mean CURLOPT_HEADER?
was going to add the diff above but part of the message has been chopped off. are you able to re-post but maybe wrap the code?