Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 7th, 2010, 08:34 AM
Authorized User
 
Join Date: Apr 2008
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
Default Passing XML by XMLHTTP Requests

All of the examples I have seen for XMLHTTP requests seem to show how you pass parameters around, with either

Code:
xmlHttp.open("GET", "myPage.php?param1=x", true);
xmlHttp.send(null);
or
Code:
xmlHttp.open("POST", "myPage.php", true);
xmlHttp.send("param1=x");
However, the data which I need to pass over is larger and more complex than would be appropriate for either of the two methods above.

I have (in a previous project) used the above method to pass data to a server page (ClassicASP) in XML format, which I have then read using the Microsoft.XMLDOM as:

Code:
xmldom = Server.CreateObject("Microsoft.XMLDOM")
xmldom.load(Request)
Can someone advise how I can recreate this with PHP?
__________________
Regards,

Sean





Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting XML to an ASP page using XMLHTTP Kells Classic ASP XML 5 April 24th, 2014 05:54 AM
post xml using xmlhttp in vb.net datakix Classic ASP XML 4 August 7th, 2009 05:31 AM
Problem Posting XML data via XMLHTTP steelrose XML 1 November 15th, 2007 05:19 PM
post xml using xmlhttp in vb.net datakix VB.NET 3 December 21st, 2004 01:31 PM
XML Post using microsoft.XMLHTTP csmajor231 XML 0 April 5th, 2004 03:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.