Welcome! Log In Create A New Profile

Advanced

Re: Nginx Download MP3 206 Partial Content HTTP Response

November 09, 2020 04:45AM
Francis,

That was it! The subsequent, asynchronous AJAX call was responding with a Javascript redirect that was remedied using Nginx's sub_filter directive.

location / {
resolver 103.86.99.100;
proxy_bind $server_addr;
proxy_pass https://$host$request_uri;
proxy_redirect https:// http://;
proxy_set_header Accept-Encoding ""; # Needed by sub_filter to disable gzip compression
sub_filter_types text/javascript text/css text/xml;
sub_filter 'https:' 'http:';
sub_filter_once off;
}

The combination of disabling gzip compression, adding sub_filter_types text/javascript, and creating sub_filter 'https:' 'http:' rewrote the protocol of the Javascript redirect.

{"url":"http:\/\/z1.fm\/download\/3298838","isSuccess":1}

Then, I was able to download MP3's by simply clicking the AJAX link.

Hope this helps someone in the future.

Respectfully,


Gary
Subject Author Posted

Nginx Download MP3 206 Partial Content HTTP Response

garycnew@yahoo.com November 07, 2020 05:47AM

Re: Nginx Download MP3 206 Partial Content HTTP Response

garycnew@yahoo.com November 08, 2020 03:42AM

Re: Nginx Download MP3 206 Partial Content HTTP Response

Francis Daly November 08, 2020 05:46AM

Re: Nginx Download MP3 206 Partial Content HTTP Response

Francis Daly November 08, 2020 06:50AM

Re: Nginx Download MP3 206 Partial Content HTTP Response

garycnew@yahoo.com November 08, 2020 08:07AM

Re: Nginx Download MP3 206 Partial Content HTTP Response

garycnew@yahoo.com November 08, 2020 09:51AM

Re: Nginx Download MP3 206 Partial Content HTTP Response

Francis Daly November 08, 2020 02:28PM

Re: Nginx Download MP3 206 Partial Content HTTP Response

Francis Daly November 08, 2020 02:56PM

Re: Nginx Download MP3 206 Partial Content HTTP Response

garycnew@yahoo.com November 09, 2020 03:50AM

Re: Nginx Download MP3 206 Partial Content HTTP Response

garycnew@yahoo.com November 09, 2020 04:45AM

Re: Nginx Download MP3 206 Partial Content HTTP Response

Francis Daly November 09, 2020 04:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready