[eluser]deejuk[/eluser]
So it turns out, HTTP_RANGE is empty on codeigniter version, but not on the vanilla php version.
Any idea what codeigniter is doing to prevent this or how can ensures its parsed?
I have a feeling it might be something to do with the security features built in, which could be stripping the content. I did try disabling global XSS, didn’t seem to make a difference
Thanks
[quote author="Tim Brownlaw" date="1400897731"]
Code:
Codeigniter must be doing something strange like not sending HTTP_RANGE
Well time to play spot the difference to debug what's going on.
You need to see what's being produced!
If you say it works in vanilla php and not in CI, what are the differences?
What does a var_dump($_SERVER) indicate or var_dump($_SERVER['HTTP_RANGE']) between a plain php file and within CI...
Are you so sure that your code isn't the issue????
Are your Variables you are creating with list, being created with the correct values? Echo them to see.
Are the generated headers correct?
You can also get addons for Firefox to view http headers. There are a few of those about.
Also does $_SERVER['HTTP_RANGE'] mysteriously change in that file above? You are testing for it's existence twice?
If you know what the input should be - you can create that and pass that in. You know what the output should be... so is it?
Just do all the normal... "Does this bit do what It should?" checks throughout the code and you'll quickly find where it's going wrong!
[/quote]