How to retrieve _POST xml data sent from BMT micro?

Discussion in 'Game Development (Technical)' started by Jamie W, Jan 7, 2009.

  1. Jamie W

    Original Member Indie Author

    Joined:
    Apr 16, 2006
    Messages:
    1,211
    Likes Received:
    0
    Any examples how to do that? In a php script..

    I know they're (BMT) doing a HTTP request on the correct php file; and I'm just E-Mailing the _POST array back to myself, just to test. But it's empty!

    Maybe it's something to do with that newfangles xml malarky..

    Anyway, does anyone have an example of how to get at the data they send?

    Thanks,
    Jamie. :)
     
  2. Indiepath

    Indiepath New Member

    Joined:
    Aug 22, 2004
    Messages:
    999
    Likes Received:
    0
    do a $xml = var_dump($_REQUEST);

    email that and see what's there.
     
  3. Alistair Hutton

    Alistair Hutton New Member

    Joined:
    Jun 13, 2007
    Messages:
    60
    Likes Received:
    0
    I had to use:

    Code:
    $xmlString = file_get_contents("php://input");
    $xml = simplexml_load_string($xmlString);
    
    To get the POST variable.
     
  4. Jamie W

    Original Member Indie Author

    Joined:
    Apr 16, 2006
    Messages:
    1,211
    Likes Received:
    0

Share This Page

  • About Indie Gamer

    When the original Dexterity Forums closed in 2004, Indie Gamer was born and a diverse community has grown out of a passion for creating great games. Here you will find over 10 years of in-depth discussion on game design, the business of game development, and marketing/sales. Indie Gamer also provides a friendly place to meet up with other Developers, Artists, Composers and Writers.
  • Buy us a beer!

    Indie Gamer is delicately held together by a single poor bastard who thankfully gets help from various community volunteers. If you frequent this site or have found value in something you've learned here, help keep the site running by donating a few dollars (for beer of course)!

    Sure, I'll Buy You a Beer