![]() |
cURL - m4v
Hi i am using the following code to transfer files that start with m4v, however they are not copying over. i was wondering if cURL is able to copy these files?
PHP Code:
|
A file is a file is a file for curl, it doesn't matter what type. I suggest adding in some error checking and reporting to see what's going wrong.
Offtopic: I'd also suggest using pathinfo($filename, PATHINFO_EXTENSION) to grab the file extension rather than the explode/array_pop combo that you use. |
Maybe you can try it with the CURLOPT_BINARYTRANSFER flag.
|
I wonder if you can directly access http://example.com/file.m4v directly? Otherwise you might need to add cookies or referral or something.
|
| All times are GMT. The time now is 01:38 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0