473,378 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Problem with IXmlHttpRequest in VC++ and Asp

Hi!
I'm trying to Send url with the another infomation.

the url is like this;
HttpRequest->open
("POST", "http://localhost/angeltag/Registry.asp?User=
m_strNewID&Pwd = m_strNewPwd&Name = m_strName",
vAsync, COleVariant (szUser), COleVariant (szPassword));
hResult = HttpRequest->setRequestHeader("Content-
Type", "application/x-www-form-urlencoded");
VARIANT varEmpty;
VariantInit(&varEmpty);
V_VT(&varEmpty) = VT_ERROR;
hResult = HttpRequest->send(varEmpty);

ASP Code are
strUserID = request("Id")
IF strUserID = "" THEN
SET XMLDom = Server.CreateObject"Microsoft.XMLDOM")
XMLDom.async = FALSE
if (XMLDom.loadXML(request.form) = FALSE) THEN
Response.Write("Invalid Request String")
Response.End()
END IF

SET currNode =
XMLDom.documentElement.selectSingleNode("/User")
strUserID = currNode.getAttribute
("Id")
strUserPwd = currNode.getAttirbute
("Pwd")
Response.Write("<RegUserInfo>")
Response.Write("<Result>")
Response.Write "1"
Response.Write("</Result>")
Response.Write("<RegUserInfo>")
END IF

The IIS receive the User Info and
Some process ...
and Return to data with xml format to the Client.
I'm pure asp script.
Can anybody help me?
Thanks for all.

mailto:ch*******@hotmail.com
Nov 16 '05 #1
0 990

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bura Tino | last post by:
Hi, I took a sample below almost verbatim from the MS MSXML 3.0 website and the line hr=pIXMLHTTPRequest.CreateInstance("Msxml2.XMLHTTP"); never succeeds. What am I doing wrong? It says...
5
by: Hari | last post by:
Guys please help me to solve this strange problem what Iam getting as follows.. Trying to instantiate a global instance of a template class as follows :- when i build this code with debug and...
1
by: JXP | last post by:
Hello, I am attempting to send url with '\n' in some place. the url is like this: "http://localhost/MyFile.xml?param1=hello\nbye\n" I put this url in CString class and I run this code:
2
by: Edward Diener | last post by:
In C++ an overridden virtual function in a derived class must have the exact same signature of the function which is overridden in the base class, except for the return type which may return a...
8
by: Agam Mehta | last post by:
Hi, Everything works fine with ixmlhttprequest. It gives me "access violation" only when i am trying to release it from the memory (i.e pXMLHttpReq->Release()). Below is my code....
0
by: Joseph | last post by:
I have been using "XMLHTTPClass" in an asp.net module. It is properly referenced and was working up until recently. Now it is failing with the error message "QueryInterface for interface...
42
by: Greg | last post by:
Hi, I've designed a bookmark in Ajax / PHP that I will put soon on sourceforge.net. But I've got an very tricky bug. I try it on some computers with Internet Explorer/Windows, Firefox...
9
by: Eric Wallstedt | last post by:
I have a page that "logs" changes made to input fields using ajax to pass data to a cgi. I use POST and it works fine most of the time (all the time in IE). But it fails when I get the data from...
1
by: Arsalan Ahmad | last post by:
Hi all, I am trying to compile some source files using makefile. While compiling I am getting errors as shown below. Any idea how can I solve this problem. I believe I need to add some...
1
by: AlirezaShokoienia | last post by:
Hi all, I have developed an C++ application with Visual Studio 2005 and in them i want save some files in a remote server using IXMLHTTPRequest component. usually before save the file, i read the...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.