dennismonsewicz Posted May 26, 2010 Share Posted May 26, 2010 I have a CURL app that makes a call to an external webpage on a different site and based upon certain URL params, this webpage will generate a PDF and then send the PDF back to the browser for download. Is there anyway to grab this PDF with CURL? I have tried it but CURL decodes the file and shows a bunch of weird characters on the screen. Thanks in advance! Dennis Link to comment https://forums.phpfreaks.com/topic/203004-php-curl/ Share on other sites More sharing options...
premiso Posted May 26, 2010 Share Posted May 26, 2010 The data that cURL pulls back needs to be written to a file and given a .pdf extension and it will pull up properly when you view it, or at least should. Look into the fopen, fwrite and fclose operations for how to write to a file. Link to comment https://forums.phpfreaks.com/topic/203004-php-curl/#findComment-1063767 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.