download php script returns some as octet streams

Questions and discussions on development tools for WarcraftRealms
Locked
crebstock
Posts: 3
Joined: Thu Dec 28, 2006 6:08 pm

download php script returns some as octet streams

Post by crebstock »

The download.php script doesn't return all of the realms as .gz files, anything with a space in it is instead returned as an application/octet stream. This causes the zlib functions in PHP to fail (and the file functions fail as well). Specifically gzfile works for every single file except the server names that have spaces. To see what I'm talking about, click on the link for the Aerie Peak server csv gzip file:

http://www.warcraftrealms.com/exports/d ... eak.csv.gz

Do you have a workaround that you know of?

I know this stuff has been up here forever, I just recently found it though and since I quit playing WoW I thought I might spend some time playing around with realm stats.

Thanks for any help!

crebstock
Posts: 3
Joined: Thu Dec 28, 2006 6:08 pm

Post by crebstock »

Nevermind, I found the problem. I just needed to do urlencode on the server names and it downloads fine now.

Locked