PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have been beating my head on this for a while, and lived at borders for a couple of days trying to figure this out. I have a form that a user fills out and then I wrap the data in xml tags. That data is then in turn posted to a remote site. Heres my cURL code
I have tried several variations and reviewed several books looking for the answer. I must be close but something is missing. I want to post the XML data to a remote site and get the results back to the page. Anyone have any ideas? Do I need to set a header for the remote site, its already expecting XML data? Anyone familiar enough with this to help?The $xmlstring is the string I built right before this code, and it is well formed cause I can post that exact string with an HTML form to the test site and its works as expected. But thats not the requirments, that was merely a sanity check to make sure everything else was correct.
So am I just asking for something impossible here, and going down the wrong path? All I want to do is post some XML data to a remote server, and this cant be accomplished by using Javascript, and I'd rather not use Micro$tuff. Someone here has to have some kind of answer....
Thanks in advance,
NewGeekOnTheBlock....
Thats outstanding direction you offer! I was wondering if the module supported any kind of logging. My Wrox Beginnig PHP5 book only supplies a bare essentials of the command and I have read several sites on the cURL subject. I will check it out. I can intuitively assess that var_dump($variable) will display the contents of the variable, but what is the difference in the curl_setopt(CURL_VERBOSE,true) vs false do? what should I expect to see here? any info is greatly appreciated.Im smart enough to get this far, but some real guidance would be GREAT! as to the purpose of the curl(curlopt_) commannds.
My string is correctly formed. all lowercase, all closed....I can post that exact string through a form action but I cant wrap the form data in xml first. Any ideas?
If I paste this into a text area on a form with the correct action URL this goes through. No additional info is needed and no authentication. This is strictly a test site for my XML packet.