Possible Duplicate:
upload a file to server without using a form?
I'am able to run this succesfully on command line:
curl -v -H "a-token: myTokenValue" -H "content-type: application/xml" -X POST --data-binary @/tmp/myfile_2_3.xml -A "My Wonderful Agent" http://example.com/url
How do I get this in PHP?