Page 1 of 1

Problem with new(?) image server

Posted: Wed Aug 06, 2014 6:46 pm
by EmberMediaManager
Hi

If i do a request to your server to get information about the image that i will download, your server don't send me content-lenghth in header. The value is always -1.

Do you see a way to fix this on your new(?) image server?

That is the information i've found about this issue:
Expected behavior - property returns content length as set by the server, so if that header is not set you get -1 (which is likely behavior for large files that are streamed from server).
The ContentLength property contains the value of the Content-Length header returned with the response. If the Content-Length header is not set in the response, ContentLength is set to the value -1

Re: Problem with new(?) image server

Posted: Wed Aug 06, 2014 6:54 pm
by Kode
Can you give me an example of the kind of request you do? I'm not 100% sure but it's probably something to do with CloudFlare caching the images maybe, however it's hard to say without someway to reproduce it.

If I hit http://assets.fanart.tv/fanart/movies/1 ... 817504.png in chrome and look at the headers it says Content-Length:130336

If you have gchat/gtalk/hangouts pm me your username and we can have a chat about it

Re: Problem with new(?) image server

Posted: Wed Aug 06, 2014 7:42 pm
by EmberMediaManager
Hi

i have code a small sample application to check the server response: http://embermediamanager.org/release/FanartTV.rar
If you have VisualStudio you can load the project for direct debugging. If not, you can start the "FanartTV.exe" in .\Bin\Debug folder.
If you add another URL to the text field, the app will display the ContentLength and image.

I will be back in 30min, maybe we can use Skype or gTalk.

Re: Problem with new(?) image server

Posted: Wed Aug 06, 2014 7:55 pm
by Kode
You can get me on gtalk with kodestar (at) gmail (dot) com

Re: Problem with new(?) image server

Posted: Wed Aug 06, 2014 8:04 pm
by Kode
Hi, I used the .exe not sure if it was something I did (I did change the page rule but not sure if that will have made a difference) but it seems to work fine for assets.fanart.tv

Re: Problem with new(?) image server

Posted: Wed Aug 06, 2014 8:11 pm
by EmberMediaManager
Can you tell me the URL for a cross check?

Sorry, gtalk is not working (too long time not used).

Re: Problem with new(?) image server

Posted: Wed Aug 06, 2014 8:14 pm
by Kode

Re: Problem with new(?) image server

Posted: Wed Aug 06, 2014 8:16 pm
by Kode
I do have skype if you want to give me your id

Re: Problem with new(?) image server

Posted: Wed Aug 06, 2014 8:20 pm
by EmberMediaManager
my skype: [removed]

Re: Problem with new(?) image server

Posted: Wed Aug 06, 2014 9:41 pm
by Kode
Should be fixed now