Where do I put JSON files in apache?

Discussion in 'Mac OS X Server, Xserve, and Networking' started by tymaster50, Dec 15, 2013.

  1. tymaster50 macrumors 68030

    tymaster50

    Joined:
    Oct 3, 2012
    Location:
    New Jersey
    #1
    Just wondering where they're supposed to be stored.
    I downloaded one for use to send to my PS3 kinda as a "modded file". Apache is running and stuff and my PS3 is hooked up to my macs ethernet port.
     
  2. MacUser2525 macrumors 68000

    MacUser2525

    Joined:
    Mar 17, 2007
    Location:
    Canada
    #2
    If you want that file to be downloaded onto the PS3 then you need to make web page it can visit to download it. Or if you had directory with no index.html file it would show just list the of files in it which could then be downloaded.
     
  3. tymaster50 thread starter macrumors 68030

    tymaster50

    Joined:
    Oct 3, 2012
    Location:
    New Jersey
    #3
    No idea what you just said lol. It was in a folder for usbwebserver which is windows only.
     
  4. mac8867 macrumors 6502

    Joined:
    Apr 5, 2010
    Location:
    Saint Augustine, FL
    #4
    JSON is a data stream used by java scripting in a web browser. What he is telling you is two different ways to make the JSON file(s) available via you PS3's web browsing capabilities. The net net here is, you have to make the JSON available to download via a http (web) connection.
     
  5. tymaster50 thread starter macrumors 68030

    tymaster50

    Joined:
    Oct 3, 2012
    Location:
    New Jersey
    #5
    okay ill come clean, what im trying to do is block prod.cloud.rockstargames.com and send my own JSON to replace theirs with on my ps3 for GTA V.
     
  6. mac8867 macrumors 6502

    Joined:
    Apr 5, 2010
    Location:
    Saint Augustine, FL
    #6
    Ahhh... very interesting, as a luggage problem. (does anyone ever get that joke?)

    So, in effect, there is a page hosted on a server you do not own, that you want modified before it is rendered by your ps3. Two options,

    one: Proxy the web site with a custom web "handler" which will take http requests, forward them, interrogate responses and update with your customized changes. From a programming point of view, this isn't a very difficult task, but it isn't for the novice.

    two: Copy all the documents from the source system to a local web server and modify. This option has serious pitfalls in it, the first being that the source system probably doesn't have "documents" in it, but rather probably asp or jsp server pages etc. That's code, and not likely something you should be copying (or even trying to).
     

Share This Page