topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 3:13 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: What is the purpose of file extensions...  (Read 2895 times)

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,186
    • View Profile
    • Donate to Member
What is the purpose of file extensions...
« on: March 12, 2011, 10:26 AM »
...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.ev...986a18ed79234f2d.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

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: What is the purpose of file extensions...
« Reply #1 on: March 12, 2011, 10:51 AM »
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.ev...986a18ed79234f2d.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
  • **
  • default avatar
  • Posts: 11,186
    • View Profile
    • Donate to Member
Re: What is the purpose of file extensions...
« Reply #2 on: March 12, 2011, 11:00 AM »
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!