How to retrieve HTTP_RAW_POST_DATA in c# 2.0
-
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 -
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 SinghThat 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
-
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
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
-
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