Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Reading sent string using POST method in ASP

Reading sent string using POST method in ASP

Scheduled Pinned Locked Moved Web Development
helpc++comwindows-admintutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gangar
    wrote on last edited by
    #1

    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.

    S 1 Reply Last reply
    0
    • G gangar

      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.

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      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.'

      G 1 Reply Last reply
      0
      • S Shog9 0

        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.'

        G Offline
        G Offline
        gangar
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups