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. ASP.NET
  4. How to retrieve HTTP_RAW_POST_DATA in c# 2.0

How to retrieve HTTP_RAW_POST_DATA in c# 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpphpasp-netxmlhelp
4 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.
  • S Offline
    S Offline
    Suman Singh
    wrote on last edited by
    #1

    Hello, I am trying to integrate GoogleCheckout and working on to process order notifications sent by google... Google sends order notifictaion in XML format as HTTP_RAW_POST_DATA. I can retrive it in PHP as follows: if(isset($GLOBALS["HTTP_RAW_POST_DATA"]) && $GLOBALS["HTTP_RAW_POST_DATA"] != "") { $msg.="
    ".$GLOBALS["HTTP_RAW_POST_DATA"]; } Can anybody let me know its equivalent code in asp.net C# 2.0 Thanks in advance for all your help. Regards, Suman Singh

    D 1 Reply Last reply
    0
    • S Suman Singh

      Hello, I am trying to integrate GoogleCheckout and working on to process order notifications sent by google... Google sends order notifictaion in XML format as HTTP_RAW_POST_DATA. I can retrive it in PHP as follows: if(isset($GLOBALS["HTTP_RAW_POST_DATA"]) && $GLOBALS["HTTP_RAW_POST_DATA"] != "") { $msg.="
      ".$GLOBALS["HTTP_RAW_POST_DATA"]; } Can anybody let me know its equivalent code in asp.net C# 2.0 Thanks in advance for all your help. Regards, Suman Singh

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      That would be Request.ServerVariables["HTTP_RAW_POST_DATA"].


      "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus

      S 1 Reply Last reply
      0
      • D DavidNohejl

        That would be Request.ServerVariables["HTTP_RAW_POST_DATA"].


        "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus

        S Offline
        S Offline
        Suman Singh
        wrote on last edited by
        #3

        Thanks for your reply... I was using this code : msg = Request.ServerVariables["HTTP_RAW_POST_DATA"]; but got nothing.. then I used : msg = Request.ServerVariables; and all the servervariables came into file but there was no any xml notification data... I got : APPL_MD_PATH=%2fLM%2fW3SVC%2f1%2fRoot%2fwcp APPL_PHYSICAL_PATH=C%3a%5cInetpub%5cwwwroot%5cwebcreatorplus%5c AUTH_TYPE= AUTH_USER= AUTH_PASSWORD= LOGON_USER= REMOTE_USER= CERT_COOKIE= CERT_FLAGS= CERT_ISSUER= CERT_KEYSIZE= CERT_SECRETKEYSIZE= CERT_SERIALNUMBER= CERT_SERVER_ISSUER= CERT_SERVER_SUBJECT= CERT_SUBJECT= CONTENT_LENGTH=2374 CONTENT_TYPE=application%2fxml GATEWAY_INTERFACE=CGI%2f1.1 these type of many variables but there was no any variable with XML notification data.. Please help. I will be highly obliged due to your this act of kindness.. I am not so much experienced in .net so I seek help from experienced people like you... Regards, Suman Singh

        D 1 Reply Last reply
        0
        • S Suman Singh

          Thanks for your reply... I was using this code : msg = Request.ServerVariables["HTTP_RAW_POST_DATA"]; but got nothing.. then I used : msg = Request.ServerVariables; and all the servervariables came into file but there was no any xml notification data... I got : APPL_MD_PATH=%2fLM%2fW3SVC%2f1%2fRoot%2fwcp APPL_PHYSICAL_PATH=C%3a%5cInetpub%5cwwwroot%5cwebcreatorplus%5c AUTH_TYPE= AUTH_USER= AUTH_PASSWORD= LOGON_USER= REMOTE_USER= CERT_COOKIE= CERT_FLAGS= CERT_ISSUER= CERT_KEYSIZE= CERT_SECRETKEYSIZE= CERT_SERIALNUMBER= CERT_SERVER_ISSUER= CERT_SERVER_SUBJECT= CERT_SUBJECT= CONTENT_LENGTH=2374 CONTENT_TYPE=application%2fxml GATEWAY_INTERFACE=CGI%2f1.1 these type of many variables but there was no any variable with XML notification data.. Please help. I will be highly obliged due to your this act of kindness.. I am not so much experienced in .net so I seek help from experienced people like you... Regards, Suman Singh

          D Offline
          D Offline
          DavidNohejl
          wrote on last edited by
          #4

          ahh I don't know much PHP so I thought it's HTTP thingy not PHP one... well, here[^] you have guide on how to use Google Checkout from ASP.NET :rose:


          "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus

          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