Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now