473,386 Members | 1,908 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,386 software developers and data experts.

Big problem with IXmlHttpRequest in VC++

JXP
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:
m_XmlHttpRequest.open ("POST", m_strXmlUrl, covFalse,
COleVariant (szUser), COleVariant (szPassword));
m_XmlHttpRequest.setRequestHeader ("Content-
Type", "application/x-www-form-urlencoded");
m_XmlHttpRequest.send (COleVariant (""));

where m_XmlHttpRequest is a wrapper to xml class,
m_strXmlUrl is the Url string.

The problem is that the IIS receive the url whitout '\n'.

Can anybody help me?
Thanks for all.

Nov 16 '05 #1
1 1203
JXP <an*******@discussions.microsoft.com> wrote:
"http://localhost/MyFile.xml?param1=hello\nbye\n"

try this URL
http://localhost/MyFile.xml?param1=hello%0abye%0a
B.

Nov 16 '05 #2

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...
0
by: young taek Lim | last post by:
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 =...
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....
39
by: tydbowl | last post by:
I have a problem where the below code chunk causes handle leaks on some machines. The leak APPEARS to be handles to the registry key: HKCU\Software\Microsoft\Windows\CurrentVersion\Internet...
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...
28
by: Andrew Poulos | last post by:
When loading an rss feed into Windows IE, doc.childNodes.length always equals 0. If I manually delete the <!DOCTYPE tag doc.childNodes.length is correct. I'm using doc = new...
15
by: Kamen TOMOV | last post by:
Hi, Do you know if it is possible to use the PUT method with the XMLHTTP object and if yes what the client side code should look like? I would like to PUT a file on the server. I got stuck...
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...
11
by: rgintexas | last post by:
i'm trying to get server side vbscript to execute in firefox: </script> <script type="text/VBScript" src="VBFile.vbs"> </script> is there any way i can use javascript to call the vbs file, or...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.