ddavtian Posted April 4, 2007 Share Posted April 4, 2007 Hey Guys, I'm trying to figure out a way to do this in php and have been scratching my head for a few days now. Basically I start off with a simple HTML form, and based on user input, that gets posted to a php file which creates an xml file on the server, simple enough right, got that part working. Now the next step is to take that XML file and send it via an HTTP POST to a remote server which accepts an XML file and will return another XML file. I have googled on this and it seems like most articles are pointing to curl, well, I MUST do two things when POSTING 1. multipart/form-data POST 2. the file type name has to be called 'xmldata' when sent If the above two is not met, the server sends back an XML code with error tags in them, and thus you don't get your requested data. Any help would be very much appreciated. Thanks Dave Link to comment https://forums.phpfreaks.com/topic/45503-how-to-http-post-an-xml-file/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.