dMZX Forums: Simple HTTP API -> Rejected Requests -> Tracker

Jump to content

Report ID 484 Title Simple HTTP API
Product Rejected Requests Status Rejected (Severity 0 - None Assigned)
Version - Fixed in -

Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

Report ID #484: Simple HTTP API

#1 User is offline  
asiekierka 

  • ??
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,267
  • Joined: 06-April 06
  • Gender:Male
  • Location:Poland

Posted 11 June 2012 - 10:20 AM

I can implement this - the updater already has code for it.

Proposed API:

set "http://asiekierka.pl/test.zip" to "HTTP_DOWNLOAD"
Downloads a file at the specified URL.

set "test2.zip" to "HTTP_FILENAME"
Sets the output filename - reset after download.

A better API can be written later on. Id like to request this to be added in 2.84b because DoZ.
Huh.


Page 1 of 1  
  • Cannot start a new Issue
  • Closed Issue This issue is locked

Replies (1 - 8)

#2 User is offline  
mzxgiant 

  • DigitalMZX Server Ninja & Code Monkey
  • Group: DigiStaff
  • Posts: 1,127
  • Joined: 02-January 01
  • Gender:Male
  • Location:Rochester, NY

Posted 11 June 2012 - 02:15 PM

While this opens up interesting DLC-esque capabilities, and we're planning on doing something outside of robotic eventually (or at least 'were') for game downloading, I'm inclined to think this is a pretty big security risk to take.

If this does get implemented, my 2 cents is that when the command is called, the user should receive a prompt saying "This is trying to communicate outwards to download {URL}" with "Permit now" and a "Permit for this world" answers. Otherwise we may see some abuse of this.

#3 User is offline  
asiekierka 

  • ??
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,267
  • Joined: 06-April 06
  • Gender:Male
  • Location:Poland

Posted 11 June 2012 - 02:20 PM

How could it be abused? MZX doesnt directly run executable code or anything...
Huh.

#4 User is offline  
mzxgiant 

  • DigitalMZX Server Ninja & Code Monkey
  • Group: DigiStaff
  • Posts: 1,127
  • Joined: 02-January 01
  • Gender:Male
  • Location:Rochester, NY

Posted 11 June 2012 - 02:32 PM

- Artifically inflating hits to an external site
- Downloading illegal content without the user's knowledge
- Overwriting key files (like the MZX executable or batch files)
- Corrupting competing games

... need I go on?

#5 User is offline  
asiekierka 

  • ??
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,267
  • Joined: 06-April 06
  • Gender:Male
  • Location:Poland

Posted 11 June 2012 - 02:35 PM

mzxgiant, on 11 June 2012 - 04:32 PM, said:

- Overwriting key files (like the MZX executable or batch files)
- Corrupting competing games


Can already be done, locally (I think one of them already was once, back in 2006-2007).

Quote

- Artifically inflating hits to an external site
- Downloading illegal content without the user's knowledge


But those two are both perfectly valid reasons. Okay then.
Huh.

#6 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,895
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 11 June 2012 - 04:55 PM

Updating status to: Awaiting Feedback

Neither of the first two would work fortunately, MZX games aren't allowed parent directory access anymore and all games have their own folders in DoZs. Some general notes:

  • New counter functions require a world version increment.
  • "A better API can be written later on." No. The better API has to be the first one that goes in, otherwise we'll have to give compatibility support to every single old crappy API we just "had to have" until we get one that doesn't suck. The last thing we need is a complete set of BOARD_SCANs laying around, figuratively.
  • I'm not sure I see the usefulness of using this for netplay -- you conveniently didn't mention it in this thread but it's all you were talking about last night -- as opposed to maybe giving MZXNet a server mode somewhere along the line. This works with the concept that was originally planned with the initial product working behind the running MZX world.
  • KKairos already laid out guidelines for the DoZ that any netplay game would be judged on its 1P mode and would be judged poorly if it required an internet connection. So... what's the rush for getting this in before the DoZ?

"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

#7 User is offline  
asiekierka 

  • ??
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,267
  • Joined: 06-April 06
  • Gender:Male
  • Location:Poland

Posted 11 June 2012 - 08:54 PM

Oh, nothing, just adding optional internet integration elements.
Huh.

#8 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,895
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 02 December 2012 - 03:40 AM

Updating status to: Fuck
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

#9 User is offline  
Terryn 

  • ******
  • Group: DigiStaff
  • Posts: 2,960
  • Joined: 12-October 00
  • Gender:Male

Posted 02 December 2012 - 03:42 AM

Moving to: Rejected Requests


Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

0 User(s) are reading this issue
0 Guests and 0 Anonymous Users


Powered by IP.Tracker 1.3.2 © 2025  IPS, Inc.