Jump to content

Get Parameter


WingMaker

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.