On Jul 4, 9:32 pm, "Bob Barrows [MVP]" <reb01...@NOyah oo.SPAMcom>
wrote:
fergally...@hot mail.com wrote:
I'm sending some data in a HTTP POST to an asp page. The data contains
some + characters. When I try to access the data using
Request.Form("d ata") I get the data but the + characters are replaced
by spaces.
Please post a simple page that reproduces the symptoms you are experiencing.
"+" characters should not be replaced.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Thanks for you help. I tried that example and I see now that they
should not be replaced. I better explain in more detail what I'm
doing. I'm sending this request from a C++ application as follows.
pIXMLHTTPReques t.CreateInstanc e("Msxml2.XMLHT TP.3.0");
pIXMLHTTPReques t->open(_bstr_t(L "POST"), bstrurl, false);
pIXMLHTTPReques t->setRequestHead er("Content-Type", "applicatio n/x-www-
form-urlencoded");
pIXMLHTTPReques t->send("t=1+2+3" );
I'm testing by writing to file on the server
fnameLicense.Wr ite(Request("t" ))
The file content is
1 2 3
I have examined what's being sent to the server using an ethernet
sniffer on the server and I can see t=1+2+3 in one of the packets
received. Anyone know what I'm missing?