Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Sending XML Objects to a php script (media-type: Application/binary) *tricky*

Posted on 2006-11-28
4
Medium Priority
?
460 Views
Last Modified: 2008-01-09
In a game called Trackmania United, the game constantly request informations throw a web server via a php file on their server.

URL : http://game.trackmaniaunited.com/online_game/request.php

I'm looking to get the information in order to create custom signatures with informations like rank, etc.. (no hacking involved here.. for paranos out there ^^)

When i sniff the packets, it's a typical http packet with normal header and everything.. all sent via POST method. The thing is, the media type is "application/binary" and the data is in plain text in XML format.

I'd like to know how to send an XML object in "application/binary" to a php script

I'm not expert and i need your help..

Example of XML object :
--------------------------
<root>
      <game>
            <name>TmUnited</name>
            <version>0.2.0.3</version>
            <lang>fr</lang>
      </game>
      <author>
            <login>XXXXX</login>
            <password></password>
            <key>SESS-XXXX-XXXX-XXXX-XXX</key>
      </author>
      <request>GetSubscribedGroups</request>
</root>
--------------------------

the key node is probably used like a session ID.. but that's not my problem for the moment.. :)

help anyone?
0
Comment
Question by:Arobas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 29

Accepted Solution

by:
TeRReF earned 2000 total points
ID: 18035101
I guess CURL is the way to go in this case. Read all about it here:
http://php.net/manual/en/ref.curl.php
0
 

Author Comment

by:Arobas
ID: 18036003
Oh god, quick answer! :)
I think i found what i need : http://php.net/manual/en/ref.curl.php#51360

I'll experiment tonight, that's the solution i think! :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question