Solved

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

Posted on 2006-11-28
4
452 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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
PHP Startup Error 12 27
MySQL database data submission 7 38
Wordpress type image upload 10 25
update field on focusout 15 19
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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 …

762 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

12 Experts available now in Live!

Get 1:1 Help Now