Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum

http/1.1 Byte Range error (encrypted download Link) on iOS

(7 posts) (3 voices)
  • Started 10 months ago by dschubba
  • Latest reply from amin007
  • Possible Solutions (Related Topics):
    1. 404 error for thankyou page return URL + encrypted download link not working
    2. eStore - encrypted download link
    3. Not Working-Automatically Shorten the Encrypted Download Link
    4. all the download links are getting the typical error messages discussed here
    5. How to "Generate an Encrypted download link for a Product' using PDF Stamper

Tags:

  • byte
  • Download
  • encrypted
  • header
  1. dschubba
    Member

    Encrypted Download Links won't work on iOS with m4v file.
    And I'd like to change HTTP/1.1 BYTE RAGE, but where?

    I've tried direct link to this media file, and worked a fine.
    There is no error. Using 2 http servers running, both direct link to media files worked OK.

    I guess I need to edit download.php on eStore, but Im not sure for it.

    Anyone?

    After fixing this problem, eStore will be able to sell m4v for ipod/ipad.
    For Android, need to test it. PC/MAC worked OK.

    Posted 10 months ago #
  2. amin007
    Key Master

    Are you using WP eStore's default download method or have you modified this in the settings?

    You probably just need to add the "m4v" extenstion to the list of mimetypes. Open the "lib/mimetype.php" file from eStore and look inside the "privBuildMimeArray" function. It has a list of known file extensions. You can add "m4v" to that list with it's proper mimetype.

    You can also zip the "m4v" file and then serve the download as a normal zip file. The customer knows to unzip a file after they download a zipped file.

    Posted 10 months ago #
  3. dschubba
    Member

    Now, I added m4v in mimetype.php. And I dont see HTTP/1.1 BYTE RAGE error.
    However, downloaded file is 0KB with proper file name.
    Direct link to download file works fine.

    It happens when, using encrypted download link.

    Posted 10 months ago #
  4. dschubba
    Member

    download manager debug log shows;
    [07/14/2011 10:18 AM] - Status : Resolved DL file path = http://<domain>/<filename>.m4v
    [07/14/2011 10:18 AM] - Advisory : No DL file path conversion performed on URL.
    [07/14/2011 10:18 AM] - Status : Dispatching DL method = 1

    I tried URL conversion preference to relative or do not convert, and log shows No DL file path conversion performed on URL.

    Actual file locates on CDN URL, do I have to choose URL conversion setting for DO Not Convert? Also, do I need cURL library?

    Posted 10 months ago #
  5. wzp
    Moderator

    Why does the path "look funny?"

    Posted 10 months ago #
  6. dschubba
    Member

    Can you add download method in /wp-cart-for-digital-products/download.php For HTTP/1.1 BYTE RAGE support ?

    I guess this download.php file create http header on each selected methods.

    Note;
    Serving video to iOS devices does not work in Multisite Wordpress due to lack of byte-range support
    http://core.trac.wordpress.org/ticket/15552

    Apple iPhone uses HTTP byte-ranges for requesting audio and video files.
    http://mobiforge.com/developing/story/content-delivery-mobile-devices

    >>You probably just need to add the "m4v" extenstion to the list of mimetypes. Open the "lib/mimetype.php" file from eStore and look inside the "privBuildMimeArray" function. It has a list of known file extensions. You can add "m4v" to that list with it's proper mimetype.

    I added m4v and mp4 in mimetype.php, and not working.

    >>You can also zip the "m4v" file and then serve the download as a normal zip file. The customer knows to unzip a file after they download a zipped file.

    I'd like to serve m4v/mp4.

    >>Why does the path "look funny?"
    Downloading 0KB file issue is solved. So, please ignore it.

    Posted 10 months ago #
  7. amin007
    Key Master

    Have you tried "Download Method 6" from the eStore's download method setup? Method 6 has byte range support.

    This post has full details on the various download methods of eStore:
    http://www.tipsandtricks-hq.com/forum/topic/wp-estore-download-methods

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin