Reading sent string using POST method in ASP
-
Hello, I am VC++ programmer. I am novice to ASP. I am using CWebBrowser2(ActiveX control) to navigate some user-written ASP pages from my application. When I navigate from my CWebBrowser2 control, I am telling it to use POST transaction instead of GET transaction and sending some Post data string. The problem is I don't know correct way how to read this data in ASP. I used Request method but no use. Offcourse, I am not sure 100% that my activeX control is really using POST method to send data correct way. Can somebody help me to read post data. Or is there a way to monitor IIS to see how the activex control sending the request ? FYI: I am sending string : "MYInput=This is my input" Thanks.
-
Hello, I am VC++ programmer. I am novice to ASP. I am using CWebBrowser2(ActiveX control) to navigate some user-written ASP pages from my application. When I navigate from my CWebBrowser2 control, I am telling it to use POST transaction instead of GET transaction and sending some Post data string. The problem is I don't know correct way how to read this data in ASP. I used Request method but no use. Offcourse, I am not sure 100% that my activeX control is really using POST method to send data correct way. Can somebody help me to read post data. Or is there a way to monitor IIS to see how the activex control sending the request ? FYI: I am sending string : "MYInput=This is my input" Thanks.
You should be able to determine the type of request by examining the Request object, but to be honest it's been a while since i've used ASP and so i can't confirm that. You might want to try the ASP.NET forum. You might also find Fiddler[^] useful for examining the request on its way to the wire...
Citizen 20.1.01
'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
-
You should be able to determine the type of request by examining the Request object, but to be honest it's been a while since i've used ASP and so i can't confirm that. You might want to try the ASP.NET forum. You might also find Fiddler[^] useful for examining the request on its way to the wire...
Citizen 20.1.01
'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
The activeX control from C++ is posting data in binary. I am able to read the data in ASP using Response.BinaryWrite(Request.BinaryRead(Request.To talBytes)) Is there any easy way to read or convert it into string in my ASP? I tried Request.Form("MyInput") and Request("MyInput") but no help.
modified on Tuesday, April 22, 2008 12:13 PM