Solved

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

Posted on 2006-11-28
4
456 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 500 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This article discusses how to implement server side field validation and display customized error messages to the client.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

726 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