WingMaker Posted April 29, 2010 Share Posted April 29, 2010 Hi All, I need some help, if this is an existing topic, please link me to it. But if someone is sending me an xml as they call my php file, how do I get xml file or url? Basically someone is calling my php file and sending me the xml, I need to grab that xml and parse it. Any Ideas? thanks WING Link to comment https://forums.phpfreaks.com/topic/200207-get-parameter/ Share on other sites More sharing options...
Ken2k7 Posted April 29, 2010 Share Posted April 29, 2010 How are they calling your PHP file and sending the XML file? Link to comment https://forums.phpfreaks.com/topic/200207-get-parameter/#findComment-1050674 Share on other sites More sharing options...
WingMaker Posted April 29, 2010 Author Share Posted April 29, 2010 via HTTP Request I believe, I am verifying how they are doing it? May I know the importance of how. thanks WING Link to comment https://forums.phpfreaks.com/topic/200207-get-parameter/#findComment-1050682 Share on other sites More sharing options...
WingMaker Posted April 30, 2010 Author Share Posted April 30, 2010 This is what my partner said he is doing. "I would make an HTTP POST request to an URL like http://server.com/shippinglabel.php. Thus I assume that an apache runs on a host and that it has an PHP module installed and that there exists a file shippinglabel.php that extracts the XML file from the HTTP request body and processes it. All information would be in the posted XML file, so there are no more URL parameters. We will use the following request header: Content-Type: text/xml. Accept: text/xml Note that we will NOT use Expect: 100-continue Thus, the XML file will be sent with the request headers, not in a second transaction only after the apache server answered with a 100-continue HTTP status code. We do this since we don't talk to an anonymous server over the Internet but expect the server to process the text/xml in any case. " Does this help? or Do you need more information? Thanks WING Link to comment https://forums.phpfreaks.com/topic/200207-get-parameter/#findComment-1051146 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.