DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: What is the purpose of file extensions...  (Read 4,367 times)

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
What is the purpose of file extensions...
« on: March 12, 2011, 04:26 PM »
...if you're going to coopt them for no reason?

I recently was snagged into playing Evony, and I was thinking about making a utility to store a history of battle reports and a viewer to go along with it.

An example battle report URL is http://battlena29.evony.com/default.html?logfile/20110312/94/e0/94e0542be21559aa986a18ed79234f2d.xml

It looks nicely formatted when you go to it, so I though they were using xslt or perhaps a viewer that encapsulated the xml...

...but the xml file isn't xml at all!  I understand to a certain extent the need to obfuscate so that you can keep your methods private, but this is ridiculous!

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: What is the purpose of file extensions...
« Reply #1 on: March 12, 2011, 04:51 PM »
It's an HTML file that accepts XML as input. Probably processed by PHP. Makes sense though.

The query string returns pure XML:

http://battlena29.evony.com/logfile/20110312/94/e0/94e0542be21559aa986a18ed79234f2d.xml

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
Re: What is the purpose of file extensions...
« Reply #2 on: March 12, 2011, 05:00 PM »
I tried to just get the query string, and I just got the same HTML file.  How did you get it?

(Oh, and it seems to be that it's a flex application)

EDIT: Nevermind.  I'm slow this morning.  I didn't realize that it was a query string at the end of the URL.  :-[

Thanks!

Original address: https://www.donationcoder.com/forum/index.php?topic=26044.0